From 27967f5e66ca891d33c6fb3831ccaf6613cd12ce Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Sun, 1 Jun 2014 13:44:02 +0000 Subject: [PATCH] fpspreadsheet: Fix workaround in previous commit which did not work. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3121 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/fpspreadsheet/fpsopendocument.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fpspreadsheet/fpsopendocument.pas b/components/fpspreadsheet/fpsopendocument.pas index 1a2af1cda..de63ebc68 100755 --- a/components/fpspreadsheet/fpsopendocument.pas +++ b/components/fpspreadsheet/fpsopendocument.pas @@ -906,7 +906,6 @@ begin then begin fmtName := GetAttrValue(NumFormatNode, 'style:name'); fmt := ''; - sep := ' '; // part of date/time separator workaround node := NumFormatNode.FirstChild; while Assigned(node) do begin if node.NodeName = 'number:year' then begin @@ -970,6 +969,7 @@ begin Remove this once a patch giving access to PreserveSpaces in xmlRead is included in fpc. } sep := node.TextContent; + if sep = '' then sep := ' '; fmt := fmt + sep; end; node := node.NextSibling;