mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 12:19:35 +02:00
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:
parent
b13605cfeb
commit
75aa932794
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user