From ab60b78dba6513790f16a34da9a5c2b84df96639 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 16 Aug 2009 09:50:57 +0000 Subject: [PATCH] Only autostart grid editor if mouse hit was *exactly* on the cell text. Avoids annoyance in index editor. --- source/table_editor.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/table_editor.pas b/source/table_editor.pas index 96bc2c8b..4ff1efc5 100644 --- a/source/table_editor.pas +++ b/source/table_editor.pas @@ -1454,7 +1454,7 @@ begin // Handle click event VT := Sender as TVirtualStringTree; VT.GetHitTestInfoAt(Mouse.CursorPos.X-VT.ClientOrigin.X, Mouse.CursorPos.Y-VT.ClientOrigin.Y, True, Click); - if Assigned(Click.HitNode) then + if Assigned(Click.HitNode) and (Click.HitColumn > NoColumn) and (hiOnItemLabel in Click.HitPositions) then VT.EditNode(Click.HitNode, Click.HitColumn); end;