fpspreadsheet: Ignore merged cells when calculating AutoColWidth (like Excel).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5736 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2017-01-30 21:18:56 +00:00
parent c1adce9a43
commit ebb8ad7ad3

View File

@ -1117,6 +1117,9 @@ begin
maxw := -1;
for cell in Worksheet.Cells.GetColEnumerator(GetWorkSheetCol(ACol)) do
begin
// Merged cells are not considered for calculating AutoColWidth -- see Excel.
if Worksheet.IsMerged(cell) then
continue;
gRow := GetGridRow(cell^.Row);
txt := GetCellText(ACol, gRow, false);
if txt = '' then