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
This commit is contained in:
wp_xxyyzz
2014-06-01 13:44:02 +00:00
parent 6f96f3bcb6
commit 27967f5e66

View File

@ -906,7 +906,6 @@ begin
then begin then begin
fmtName := GetAttrValue(NumFormatNode, 'style:name'); fmtName := GetAttrValue(NumFormatNode, 'style:name');
fmt := ''; fmt := '';
sep := ' '; // part of date/time separator workaround
node := NumFormatNode.FirstChild; node := NumFormatNode.FirstChild;
while Assigned(node) do begin while Assigned(node) do begin
if node.NodeName = 'number:year' then begin if node.NodeName = 'number:year' then begin
@ -970,6 +969,7 @@ begin
Remove this once a patch giving access to PreserveSpaces in xmlRead Remove this once a patch giving access to PreserveSpaces in xmlRead
is included in fpc. } is included in fpc. }
sep := node.TextContent; sep := node.TextContent;
if sep = '' then sep := ' ';
fmt := fmt + sep; fmt := fmt + sep;
end; end;
node := node.NextSibling; node := node.NextSibling;