diff --git a/src/PhpSpreadsheet/Reader/Xlsx/Styles.php b/src/PhpSpreadsheet/Reader/Xlsx/Styles.php index af52a6b2..c98780b0 100644 --- a/src/PhpSpreadsheet/Reader/Xlsx/Styles.php +++ b/src/PhpSpreadsheet/Reader/Xlsx/Styles.php @@ -163,7 +163,7 @@ class Styles extends BaseParserClass self::readBorderStyle($docStyle->getBorders(), $style->border); } - if (isset($style->alignment)) { + if (isset($style->alignment->alignment)) { self::readAlignmentStyle($docStyle->getAlignment(), $style->alignment); }