You've already forked lazarus-ccr
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:
@ -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
|
||||
|
Reference in New Issue
Block a user