Skip to content

Commit 6e2447d

Browse files
committed
setStrikethrough() did not set the font
Fixes #403
1 parent bdc95b1 commit 6e2447d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2121
- Read printing area correctly when skipping some sheets - [#371](https://github.com/PHPOffice/PhpSpreadsheet/issues/371)
2222
- Avoid incorrectly overwriting calculated value type - [#394](https://github.com/PHPOffice/PhpSpreadsheet/issues/394)
2323
- Select correct cell when calling freezePane - [#389](https://github.com/PHPOffice/PhpSpreadsheet/issues/389)
24+
- `setStrikethrough()` did not set the font - [#403](https://github.com/PHPOffice/PhpSpreadsheet/issues/403)
2425

2526
## [1.1.0] - 2018-01-28
2627

src/PhpSpreadsheet/Style/Font.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,9 @@ public function setStrikethrough($pValue)
484484
if ($pValue == '') {
485485
$pValue = false;
486486
}
487+
487488
if ($this->isSupervisor) {
488-
$styleArray = $this->getStyleArray(['strike' => $pValue]);
489+
$styleArray = $this->getStyleArray(['strikethrough' => $pValue]);
489490
$this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
490491
} else {
491492
$this->strikethrough = $pValue;

0 commit comments

Comments
 (0)