mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-15 10:39:22 +02:00
Qt: TQtWidgetSet.GetClientRect: added check for handle.
git-svn-id: trunk@44892 -
This commit is contained in:
parent
17a8339268
commit
daf5b36571
@ -2604,7 +2604,8 @@ begin
|
|||||||
{$ifdef VerboseQtWinAPI}
|
{$ifdef VerboseQtWinAPI}
|
||||||
WriteLn('[WinAPI GetClientRect]');
|
WriteLn('[WinAPI GetClientRect]');
|
||||||
{$endif}
|
{$endif}
|
||||||
|
if Handle = 0 then
|
||||||
|
Exit(False);
|
||||||
GetClientBounds(Handle, ARect);
|
GetClientBounds(Handle, ARect);
|
||||||
OffsetRect(ARect, -ARect.Left, -ARect.Top);
|
OffsetRect(ARect, -ARect.Left, -ARect.Top);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user