summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrewski207 <drewski207@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-17 18:54:14 +0000
committerdrewski207 <drewski207@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-17 18:54:14 +0000
commitc6934fd6a004c8025db448ecfbe7dba6c39b7d35 (patch)
tree6430c2eebe69f3290fc4b27dd2b16e7e0eb53491
parent00075dfe1de2b2f727437a7cda815b6079969179 (diff)
downloadfpGUI-c6934fd6a004c8025db448ecfbe7dba6c39b7d35.tar.xz
* Fixed a bug where the header was resized when it shoudn't
-rw-r--r--src/gui/gui_listview.pas4
1 files changed, 2 insertions, 2 deletions
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;