mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:50:25 +02:00
LCL-CustomDrawn: Further improves TCustomGrid
git-svn-id: trunk@37037 -
This commit is contained in:
parent
31551c6c8f
commit
8d471ab570
@ -4703,7 +4703,11 @@ begin
|
||||
lControlHandle.IncInvalidateCount();
|
||||
lControl := lControlHandle.WinControl;
|
||||
lControl := Forms.GetParentForm(lControl);
|
||||
Result := BackendInvalidateRect(lControl.Handle, Rect, BErase);
|
||||
// Don't use Rect in BackendInvalidateRect unless we really make the full
|
||||
// conversion of coordinates to window coordinates. Better invalidate everything
|
||||
// then too few. And anyway on each draw we send everything.
|
||||
// This fixes changing the selection in TCustomGrid
|
||||
Result := BackendInvalidateRect(lControl.Handle, nil, BErase);
|
||||
end
|
||||
// Invalidate on a form
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user