From fbbe781a3cbb906d7b2a9f33a8c7e8e7c7d3f02e Mon Sep 17 00:00:00 2001 From: juha Date: Sun, 22 Mar 2015 11:54:27 +0000 Subject: [PATCH] DebugManager: fix an error in earlier commit when initializing a variable. git-svn-id: trunk@48454 - --- ide/debugmanager.pas | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ide/debugmanager.pas b/ide/debugmanager.pas index 4258d5f6ba..8a4aa3c6ce 100644 --- a/ide/debugmanager.pas +++ b/ide/debugmanager.pas @@ -1349,8 +1349,10 @@ begin SrcLine := -1; end; end - else + else begin + NewSource := Nil; SrcLine := -1; + end; ReleaseRefAndNil(CurrentSourceUnitInfo); @@ -1368,10 +1370,8 @@ begin end; Editor := nil; - if SourceEditorManager <> nil then - Editor := SourceEditorManager.SourceEditorIntfWithFilename(NewSource.Filename) - else - NewSource := Nil; + if SourceEditorManager <> nil + then Editor := SourceEditorManager.SourceEditorIntfWithFilename(NewSource.Filename); // jump editor to execution line Flags := [jfAddJumpPoint, jfSearchVirtualFullPath];