LCL, fix regresion adding custom columns in inactive dataset, issue #14239

git-svn-id: trunk@21231 -
This commit is contained in:
jesus 2009-08-15 19:16:28 +00:00
parent 412d193513
commit 5ec4dadaec

View File

@ -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;