From 8487ec272eaadcb60b778d440eba9e108282bf63 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Tue, 17 Nov 2009 16:37:34 +0100 Subject: Fix some compiler warnings and hints --- libgtk_kylix/GTKMenus.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgtk_kylix/GTKMenus.pas') diff --git a/libgtk_kylix/GTKMenus.pas b/libgtk_kylix/GTKMenus.pas index 7b1b9a8..2534f4c 100644 --- a/libgtk_kylix/GTKMenus.pas +++ b/libgtk_kylix/GTKMenus.pas @@ -366,8 +366,8 @@ begin if FItemType = itTearOff then g_object_get(FWidget, 'tearoff-state', @b, nil) else if Assigned(FMenu) and (Count > 0) then g_object_get(FMenu, 'tearoff-state', @b, nil); end else begin - if FItemType = itTearOff then Result := Boolean(torn_off(PGTKTearOffMenuItem(FWidget)^)) else - if Assigned(FMenu) and (Count > 0) then Result := Boolean(torn_off(PGTKMenu(FMenu)^)); + if FItemType = itTearOff then b := Boolean(torn_off(PGTKTearOffMenuItem(FWidget)^)) else + if Assigned(FMenu) and (Count > 0) then b := Boolean(torn_off(PGTKMenu(FMenu)^)); end; Result := b; end; -- cgit v1.2.3