mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 01:16:01 +02:00
LCL, trim values when using dgAutoSizeColumns
git-svn-id: trunk@20872 -
This commit is contained in:
parent
11ffbb8264
commit
b5d019c838
@ -1527,7 +1527,7 @@ begin
|
||||
|
||||
if C<>nil then begin
|
||||
tmpCanvas.Font := C.Title.Font;
|
||||
ColWidth := tmpCanvas.TextWidth(C.Title.Caption);
|
||||
ColWidth := tmpCanvas.TextWidth(trim(C.Title.Caption));
|
||||
tmpCanvas.Font := C.Font;
|
||||
end else begin
|
||||
ColWidth := 0;
|
||||
@ -1540,7 +1540,7 @@ begin
|
||||
FDatalink.ActiveRecord := ARow - FixedRows;
|
||||
|
||||
if Field.dataType<>ftBlob then
|
||||
s := Field.DisplayText
|
||||
s := trim(Field.DisplayText)
|
||||
else
|
||||
s := '(blob)';
|
||||
w := tmpCanvas.TextWidth(s);
|
||||
|
Loading…
Reference in New Issue
Block a user