summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-09-29 22:45:23 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-09-29 22:45:23 +0200
commitfbcbfad62bb22b42871052b08d474209511878ce (patch)
tree487f39eadecb50da0cda0623788a23a61c253aca
parentad9cdb8339e0b141dd3979206aaca345df4a2003 (diff)
downloadtuxcmd-fbcbfad62bb22b42871052b08d474209511878ce.tar.xz
Fix panel column resizing on certain platforms
Return value has not been set in the callback function, making it random by compiler decision. This is hard to find as it affected only 32-bit x86 platform. Fixes bug #2868686
-rw-r--r--libgtk_kylix/GTKControls.pas1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgtk_kylix/GTKControls.pas b/libgtk_kylix/GTKControls.pas
index 46b03a2..158e55b 100644
--- a/libgtk_kylix/GTKControls.pas
+++ b/libgtk_kylix/GTKControls.pas
@@ -714,6 +714,7 @@ var Shift: TShiftState;
Accept: boolean;
begin
Accept := True;
+ Result := False;
if event^.is_hint <> 0 then Exit;
Shift := [];
if event^.state and GDK_SHIFT_MASK = GDK_SHIFT_MASK then Include(Shift, ssShift);