IDE: fixed jumping to source from the code explorer (bug #8042)

git-svn-id: trunk@10368 -
This commit is contained in:
vincents 2007-01-03 07:44:22 +00:00
parent 214f4d229d
commit 36c6291a30

View File

@ -564,7 +564,10 @@ var
CodeBuffer: TCodeBuffer;
ACodeTool: TCodeTool;
begin
CurItem:=CodeTreeview.Selected;
if tvoAllowMultiselect in CodeTreeview.Options then
CurItem:=CodeTreeView.GetFirstMultiSelected
else
CurItem:=CodeTreeview.Selected;
if CurItem=nil then exit;
CurNode:=TViewNodeData(CurItem.Data);
if CurNode.StartPos<1 then exit;