Skip to content

Commit 59659f0

Browse files
committed
fix: crash in AnyGridPaintText with no query result
Found in recently uploaded crash reports
1 parent 13a0127 commit 59659f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/main.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10520,6 +10520,8 @@ procedure TMainForm.AnyGridPaintText(Sender: TBaseVirtualTree; const TargetCanva
1052010520
end;
1052110521

1052210522
r := GridResult(Sender);
10523+
if not Assigned(r) then
10524+
Exit;
1052310525
RowNumber := Sender.GetNodeData(Node);
1052410526
r.RecNo := RowNumber^;
1052510527

0 commit comments

Comments
 (0)