From a306981b469764e802ac5d713872d7c80de3b4b9 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Sat, 18 Feb 2017 20:23:25 +0000 Subject: [PATCH] fpspreadsheet: Fix xlsx reader incorrectly detecting word wrap. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5756 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/fpspreadsheet/source/common/xlsxooxml.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fpspreadsheet/source/common/xlsxooxml.pas b/components/fpspreadsheet/source/common/xlsxooxml.pas index 341fa8ba1..4905dbaa5 100644 --- a/components/fpspreadsheet/source/common/xlsxooxml.pas +++ b/components/fpspreadsheet/source/common/xlsxooxml.pas @@ -904,7 +904,7 @@ begin fmt.BiDiMode := TsBiDiMode(StrToInt(s1)); s1 := GetAttrValue(childNode, 'wrapText'); - if (s1 <> '0') then + if (s1 <> '') and (s1 <> '0') then Include(fmt.UsedFormattingFields, uffWordWrap); s1 := GetAttrValue(childNode, 'textRotation');