From f10b07cd0f5938e54b2a4067d832ab2f5b2bf89b Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Fri, 10 Aug 2018 22:08:08 +0000 Subject: [PATCH] fpspreadsheet: Fix detection of word-wrapped cells in xlsx files written by LibreOffice Calc git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6589 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/fpspreadsheet/source/common/xlsxooxml.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/fpspreadsheet/source/common/xlsxooxml.pas b/components/fpspreadsheet/source/common/xlsxooxml.pas index ad44a6c68..354200e6b 100644 --- a/components/fpspreadsheet/source/common/xlsxooxml.pas +++ b/components/fpspreadsheet/source/common/xlsxooxml.pas @@ -965,8 +965,8 @@ begin if (s1 = '1') or (s1 = '2') then fmt.BiDiMode := TsBiDiMode(StrToInt(s1)); - s1 := GetAttrValue(childNode, 'wrapText'); - if (s1 <> '') and (s1 <> '0') then + s1 := Lowercase(GetAttrValue(childNode, 'wrapText')); + if (s1 <> '') and (s1 <> '0') and (s1 <> 'false') then Include(fmt.UsedFormattingFields, uffWordWrap); s1 := GetAttrValue(childNode, 'textRotation');