You've already forked lazarus-ccr
rxdbgrid - fix AV on open form whith empty grid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2516 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -2330,7 +2330,7 @@ begin
|
||||
begin
|
||||
F := GetFieldFromGridColumn(aCol);
|
||||
C := ColumnFromGridColumn(aCol) as TRxColumn;
|
||||
if Assigned(C.FOnDrawColumnCell) then
|
||||
if Assigned(C) and Assigned(C.FOnDrawColumnCell) then
|
||||
C.OnDrawColumnCell(Self, aRect, aCol, TColumn(ColumnFromGridColumn(aCol)), aState)
|
||||
else
|
||||
begin
|
||||
|
Reference in New Issue
Block a user