From c6934fd6a004c8025db448ecfbe7dba6c39b7d35 Mon Sep 17 00:00:00 2001 From: drewski207 Date: Fri, 17 Aug 2007 18:54:14 +0000 Subject: * Fixed a bug where the header was resized when it shoudn't --- src/gui/gui_listview.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/gui_listview.pas b/src/gui/gui_listview.pas index 509fcdbc..3b286978 100644 --- a/src/gui/gui_listview.pas +++ b/src/gui/gui_listview.pas @@ -820,7 +820,7 @@ begin Inc(curLeft, Column.Width); end; if not Assigned(FResizingColumn) and Assigned(LastColumn) and LastColumn.Resizable then - if (HeaderX - curLeft) < 5 then + if (HeaderX - curLeft < 5) and (HeaderX - curLeft >= 0) then NewMouseCursor := mcSizeEW; if FResizingColumn <> nil then @@ -904,7 +904,7 @@ begin LastColumn := Column; end; if not Assigned(FResizingColumn) and Assigned(LastColumn) and LastColumn.Resizable then - if (HeaderX - curLeft) < 5 then + if (HeaderX - curLeft < 5) and (HeaderX - curLeft >= 0) then FResizingColumn := LastColumn; end; -- cgit v1.2.3-70-g09d2