mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 03:18:55 +02:00
LCL, fix regresion adding custom columns in inactive dataset, issue #14239
git-svn-id: trunk@21231 -
This commit is contained in:
parent
412d193513
commit
5ec4dadaec
@ -1527,7 +1527,7 @@ begin
|
||||
Field := GetFieldFromGridColumn(ACol);
|
||||
C := ColumnFromGridColumn(ACol);
|
||||
|
||||
if C<>nil then begin
|
||||
if (C<>nil) and (C.Title<>nil) then begin
|
||||
tmpCanvas.Font := C.Title.Font;
|
||||
ColWidth := tmpCanvas.TextWidth(trim(C.Title.Caption));
|
||||
tmpCanvas.Font := C.Font;
|
||||
|
Loading…
Reference in New Issue
Block a user