Fix a minor graphical glitch when a focus rectangle is displayed in a gridcell (broken in rev 1156)

This commit is contained in:
Ansgar Becker
2007-12-05 00:12:49 +00:00
parent 42166f0975
commit 367cb4cc40

View File

@@ -4921,6 +4921,8 @@ begin
begin
Grid.Canvas.Font.Color := COLOR_NULLVALUE;
Grid.Canvas.TextOut(Rect.Left+2, Rect.Top+2, '(NULL)');
// Reset font color, so the focus rectangle in this cell displays as dotted rectangle
Grid.Canvas.Font.Color := clWindowText;
end;
end;