mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 08:20:21 +02:00
Gtk3: fixed crash - wrong cast.
This commit is contained in:
parent
f3573ad638
commit
3b3556640e
@ -1305,7 +1305,7 @@ function TGtk3WidgetSet.IsDesignerDC(WindowHandle: HWND; DC: HDC): Boolean;
|
||||
begin
|
||||
Result := IsValidHandle(WindowHandle) and (TGtk3Widget(WindowHandle) is TGtk3DesignWidget);
|
||||
if Result then
|
||||
Result := TGtk3DesignWidget(DC).DesignContext = DC;
|
||||
Result := TGtk3DesignWidget(WindowHandle).DesignContext = DC;
|
||||
end;
|
||||
|
||||
function TGtk3WidgetSet.ReleaseDesignerDC(Window: HWND; DC: HDC): Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user