diff --git a/lcl/interfaces/gtk2/gtk2themes.pas b/lcl/interfaces/gtk2/gtk2themes.pas index 14ec89fd9f..53f429210c 100644 --- a/lcl/interfaces/gtk2/gtk2themes.pas +++ b/lcl/interfaces/gtk2/gtk2themes.pas @@ -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;