Browse Source

Fix off-by-one error in profiler's "Go to definition".

pull/14/head
Daniel Grunwald 15 years ago
parent
commit
754cb29bfd
  1. 2
      src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/GoToDefinition.cs
  2. 1
      src/Main/StartUp/Project/StartUp.csproj

2
src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Commands/GoToDefinition.cs

@ -26,7 +26,7 @@ namespace ICSharpCode.Profiler.AddIn.Commands @@ -26,7 +26,7 @@ namespace ICSharpCode.Profiler.AddIn.Commands
IEntity member = GetMemberFromName(c, selectedItem.MethodName, selectedItem.Parameters);
FilePosition position = c.ProjectContent.GetPosition(member ?? c);
if (!position.IsEmpty && !string.IsNullOrEmpty(position.FileName)) {
FileService.JumpToFilePosition(position.FileName, position.Line - 1, position.Column - 1);
FileService.JumpToFilePosition(position.FileName, position.Line, position.Column);
}
}
}

1
src/Main/StartUp/Project/StartUp.csproj

@ -78,7 +78,6 @@ @@ -78,7 +78,6 @@
</Compile>
</ItemGroup>
<ItemGroup>
<Content Include="ProfilingSessions\Session20101211_181028.sdps" />
<ProjectReference Include="..\..\Base\Project\ICSharpCode.SharpDevelop.csproj">
<Project>{2748AD25-9C63-4E12-877B-4DCE96FBED54}</Project>
<Name>ICSharpCode.SharpDevelop</Name>

Loading…
Cancel
Save