mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 05:40:37 +02:00
gtk2 intf: fixed crash in TGtk2ThemeServices.GetStockImage
git-svn-id: trunk@23171 -
This commit is contained in:
parent
c160d3ebf6
commit
0d69aed5e2
@ -176,7 +176,7 @@ begin
|
||||
else
|
||||
Style := GetStyle(lgsWindow);
|
||||
|
||||
if (Style = nil) and not GTK_IS_STYLE(Style) then
|
||||
if (Style = nil) or (not GTK_IS_STYLE(Style)) then
|
||||
begin
|
||||
Result := inherited GetStockImage(StockID, Image, Mask);
|
||||
Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user