summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;