summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrewski207 <drewski207@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-17 18:30:40 +0000
committerdrewski207 <drewski207@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-17 18:30:40 +0000
commit00075dfe1de2b2f727437a7cda815b6079969179 (patch)
tree8448c14ec6811b57cdd216707eb339e63c23f5f7
parent69576cef36d1732fdf1c4fadbb568b2fba89ef7e (diff)
downloadfpGUI-00075dfe1de2b2f727437a7cda815b6079969179.tar.xz
* Fixed a bug introduced in 312
* Fixed clicking past the right of a item
-rw-r--r--src/gui/gui_listview.pas9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/gui_listview.pas b/src/gui/gui_listview.pas
index 94847ed6..509fcdbc 100644
--- a/src/gui/gui_listview.pas
+++ b/src/gui/gui_listview.pas
@@ -712,6 +712,8 @@ begin
Exit;
if Index >= FItems.Count then
Exit;
+ if FHScrollBar.Position - 2 + X > GetVisibleColumnsWidth then
+ Exit;
Result := FItems.Item[Index];
end;
@@ -901,10 +903,11 @@ begin
end;
LastColumn := Column;
end;
+ if not Assigned(FResizingColumn) and Assigned(LastColumn) and LastColumn.Resizable then
+ if (HeaderX - curLeft) < 5 then
+ FResizingColumn := LastColumn;
end;
- if not Assigned(FResizingColumn) and Assigned(LastColumn) and LastColumn.Resizable then
- if (HeaderX - curLeft) < 5 then
- FResizingColumn := LastColumn;
+
Inc(cRect.Top, HeaderHeight);
end;