mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 09:09:32 +02:00
LCL: Require Handle in TCanvas.GetClipRect. Issue #40114, patch by nanobit.
This commit is contained in:
parent
3f185f585d
commit
9822443fd6
@ -54,6 +54,7 @@ end;
|
||||
{-----------------------------------------------}
|
||||
function TCanvas.GetClipRect: TRect;
|
||||
begin
|
||||
RequiredState([csHandleValid]);
|
||||
// return actual clipping rectangle
|
||||
if GetClipBox(FHandle, @Result) = ERROR then
|
||||
Result := Rect(0, 0, 2000, 2000);{Just in Case}
|
||||
|
Loading…
Reference in New Issue
Block a user