mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 14:29:39 +02:00
check whether Rect is nil, prevent crash (issue #1746)
git-svn-id: trunk@8786 -
This commit is contained in:
parent
2d4316de8b
commit
e0e2b0cd0e
@ -2268,8 +2268,11 @@ Begin
|
||||
Flags := RDW_INVALIDATE or RDW_ALLCHILDREN;
|
||||
if BErase then
|
||||
Flags := Flags or RDW_ERASE;
|
||||
GetLCLClientBoundsOffset(aHandle, ORect);
|
||||
OffsetRect(Rect^, ORect.Left, ORect.Top);
|
||||
if Rect <> nil then
|
||||
begin
|
||||
GetLCLClientBoundsOffset(aHandle, ORect);
|
||||
OffsetRect(Rect^, ORect.Left, ORect.Top);
|
||||
end;
|
||||
Result := Boolean(Windows.RedrawWindow(aHandle, Windows.RECT(Rect^), 0, Flags));
|
||||
End;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user