mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 05:00:53 +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}
|
||||
WriteLn('[WinAPI GetClientRect]');
|
||||
{$endif}
|
||||
|
||||
if Handle = 0 then
|
||||
Exit(False);
|
||||
GetClientBounds(Handle, ARect);
|
||||
OffsetRect(ARect, -ARect.Left, -ARect.Top);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user