fpspreadsheet: Fix reading non-integer sized fixed panes in xlsx files.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4336 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2015-09-17 14:48:33 +00:00
parent 899efef347
commit c22465879e

View File

@ -1762,9 +1762,9 @@ begin
if s = 'frozen' then begin
AWorksheet.Options := AWorksheet.Options + [soHasFrozenPanes];
s := GetAttrValue(childNode, 'xSplit');
if s <> '' then AWorksheet.LeftPaneWidth := StrToInt(s);
if s <> '' then AWorksheet.LeftPaneWidth := round(StrToFloat(s, FPointSeparatorSettings));
s := GetAttrValue(childNode, 'ySplit');
if s <> '' then AWorksheet.TopPaneHeight := StrToInt(s);
if s <> '' then AWorksheet.TopPaneHeight := round(StrToFloat(s, FPointSeparatorSettings));
end;
end else
if nodeName = 'selection' then begin