Debugger: Fixed trouble with execution-line, when changing units (would go to wrong line); introduced in r24569 #b60616fe5a (track line changes)

git-svn-id: trunk@24584 -
This commit is contained in:
martin 2010-04-11 18:29:39 +00:00
parent 6b98807014
commit 37b03ff6d4
2 changed files with 2 additions and 3 deletions

View File

@ -1699,7 +1699,7 @@ begin
Editor := nil;
if SourceEditorManager <> nil
then begin
Editor := SourceEditorManager.GetActiveSE;
Editor := SourceEditorManager.SourceEditorIntfWithFilename(NewSource.Filename);
SourceEditorManager.ClearExecutionLines;
SourceEditorManager.ClearErrorLines;
end;
@ -1717,7 +1717,7 @@ begin
then begin
if not Editor.HasExecutionMarks then
Editor.FillExecutionMarks;
Editor.ExecutionLine := SrcLine;
Editor.ExecutionLine := i;
end;
end;

View File

@ -3374,7 +3374,6 @@ end;
procedure TSourceEditor.SetExecutionLine(NewLine: integer);
begin
NewLine := EditorComponent.IDEGutterMarks.DebugLineToSourceLine(NewLine);
if ExecutionLine=NewLine then exit;
if (FSharedValues.ExecutionMark = nil) then begin
if NewLine = -1 then