Gtk3: fixed crash - wrong cast.

This commit is contained in:
zeljan1 2025-01-14 23:39:49 +01:00
parent f3573ad638
commit 3b3556640e

View File

@ -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;