You've already forked lazarus-ccr
fpspreadsheet: Fix automatic column width in grid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4561 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -266,7 +266,7 @@ begin
|
|||||||
painter := TsTextPainter.Create(ACanvas, AWorkbook, ARect, AText, ARichTextParams,
|
painter := TsTextPainter.Create(ACanvas, AWorkbook, ARect, AText, ARichTextParams,
|
||||||
AFontIndex, ATextRotation, haLeft, vaTop, AWordWrap, ARightToLeft);
|
AFontIndex, ATextRotation, haLeft, vaTop, AWordWrap, ARightToLeft);
|
||||||
try
|
try
|
||||||
Result := painter.Height;
|
Result := painter.Width;
|
||||||
finally
|
finally
|
||||||
painter.Free;
|
painter.Free;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user