gtk2 intf: fixed crash in TGtk2ThemeServices.GetStockImage

git-svn-id: trunk@23171 -
This commit is contained in:
mattias 2009-12-17 23:27:38 +00:00
parent c160d3ebf6
commit 0d69aed5e2

View File

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