fpspreadsheet: Fix ods reader's ApplyColData erasing page breaks written by LibreOffice Calc (issue #1 in https://forum.lazarus.freepascal.org/index.php/topic,46175.msg328961.html#msg328961).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7087 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
407a68cf26
commit
9436da6a2c
@ -434,7 +434,7 @@ begin
|
||||
// ...and delete all visible column records with default format
|
||||
for c := sheet.Cols.Count-1 downto 0 do begin
|
||||
lCol := PCol(sheet.Cols[c]);
|
||||
if (lCol^.FormatIndex = 0) and not (croHidden in lCol^.Options) then
|
||||
if (lCol^.FormatIndex = 0) and ([croHidden, croPageBreak] * lCol^.Options = []) then
|
||||
sheet.RemoveCol(lCol^.Col);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user