LCL: simplified logic to determine if a muse click may select treeview node, DisplayTextLeft >= DisplayNodeLeft is always true.

git-svn-id: trunk@20566 -
This commit is contained in:
vincents 2009-06-10 06:45:12 +00:00
parent b13605cfeb
commit 75aa932794

View File

@ -4691,8 +4691,7 @@ begin
// mousedown occured on expand sign -> expand/collapse
CursorNode.Expanded:=not CursorNode.Expanded;
end else
if (LogicalX >= CursorNode.DisplayTextLeft) or
(LogicalX >= CursorNode.DisplayIconLeft) then
if LogicalX >= CursorNode.DisplayIconLeft then
begin
// mousedown occured in text or icon
// -> select node and begin drag operation