Fix AV in table editor for clicking right besides a node in a "no column" whitespace

This commit is contained in:
Ansgar Becker
2009-05-28 05:29:34 +00:00
parent 53da54e235
commit 0bed55de02

View File

@ -964,7 +964,7 @@ begin
end else begin
// All other cells go into edit mode please
// Explicitely done on OnClick, not in OnFocusChanged which seemed annoying for keyboard users
if Assigned(Click.HitNode) then
if Assigned(Click.HitNode) and (Click.HitColumn > NoColumn) then
VT.EditNode(Click.HitNode, Click.HitColumn);
end;
end;