diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-11-10 13:57:16 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-11-10 13:57:16 +0400 |
commit | 3888e6da52471c04f1fa32b8cfc09d28306f4468 (patch) | |
tree | 9c32c55e279a9edff58c1e8e68cf12083e874987 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs | |
parent | 67bd25e335afc8430e450f6e402471f3c850b239 (diff) |
Fixed "Bug 1291 - Go to declaration and Navigate to... don't position
correctly".
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs index f092df5906..6431a73e7a 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs @@ -1078,17 +1078,10 @@ namespace MonoDevelop.Ide.Gui newContent.WorkbenchWindow.DocumentType = binding.Name; IEditableTextBuffer ipos = newContent.GetContent<IEditableTextBuffer> (); - if (fileInfo.Line > 0 && ipos != null) { - newContent.Control.Realized += HandleNewContentControlRealized; - } + if (fileInfo.Line > 0 && ipos != null) + JumpToLine (); fileInfo.NewContent = newContent; } - - void HandleNewContentControlRealized (object sender, EventArgs e) - { - JumpToLine (); - newContent.Control.Realized -= HandleNewContentControlRealized; - } public bool JumpToLine () { |