Skip to content

Commit 9a36ddb

Browse files
author
Mark Baker
committed
Quick bugfix to PDF merge cell styling
1 parent 7a7634f commit 9a36ddb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Classes/PHPExcel/Writer/HTML.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,9 @@ private function _generateRow(PHPExcel_Worksheet $pSheet, $pValues = null, $pRow
12331233
// Also apply style from last cell in merge to fix borders -
12341234
// relies on !important for non-none border declarations in _createCSSStyleBorder
12351235
$endCellCoord = PHPExcel_Cell::stringFromColumnIndex($colNum + $colSpan - 1) . ($pRow + $rowSpan);
1236-
$cssClass .= ' style' . $pSheet->getCell($endCellCoord)->getXfIndex();
1236+
if (!$this->_useInlineCss) {
1237+
$cssClass .= ' style' . $pSheet->getCell($endCellCoord)->getXfIndex();
1238+
}
12371239
}
12381240

12391241
// Write

0 commit comments

Comments
 (0)