From: Alan Date: Tue, 21 Nov 2023 06:35:25 +0000 (+0800) Subject: warnings X-Git-Url: http://git.roojs.org/?p=pear;a=commitdiff_plain;h=f864a56337930c7d57dce6d485e230413082c312 warnings --- diff --git a/Document/Word/Writer/Writer/Word2007/Base.php b/Document/Word/Writer/Writer/Word2007/Base.php index 64e00702..cc87190d 100644 --- a/Document/Word/Writer/Writer/Word2007/Base.php +++ b/Document/Word/Writer/Writer/Word2007/Base.php @@ -148,7 +148,7 @@ class Document_Word_Writer_Writer_Word2007_Base extends Document_Word_Writer_Wri // microsoft office default line spacing is 10pt, we need to set it to 0 if we have not set the spacing.. $spaceBefore = is_null($style->getSpaceBefore()) ? 0 : $style->getSpaceBefore(); $spaceAfter = is_null($style->getSpaceAfter()) ? 0 : $style->getSpaceAfter(); - $spacing = is_nan($style->getSpacing()) ? 0 : $style->getSpacing(); + $spacing = $style->getSpacing() ==- null || is_nan($style->getSpacing()) ? 0 : $style->getSpacing(); $isList = is_null($style->getListStyle()) ? '' : $style->getListStyle(); if(!is_null($align) || !is_null($spacing) || !is_null($spaceBefore) || !is_null($spaceAfter) || !empty($isList)) {