diff options
author | Mikayla Hutchinson <m.j.hutchinson@gmail.com> | 2017-01-18 07:40:42 +0300 |
---|---|---|
committer | Mikayla Hutchinson <m.j.hutchinson@gmail.com> | 2017-01-18 07:40:42 +0300 |
commit | 5cfcaa6f37e493322acb0dc99930c52205c705c0 (patch) | |
tree | b68e3303a464b86b4b259f8f1aee6366b18ee3fc /main/src/addins/MonoDevelop.Gettext | |
parent | d5260a58d2786729fc5d4c568966b4567394a85d (diff) | |
parent | a1573b3501c8d09835b7e56946faa88cdbc689ff (diff) |
Merge remote-tracking branch 'xamarin/vNext' into roslyn-ivt
Diffstat (limited to 'main/src/addins/MonoDevelop.Gettext')
-rw-r--r-- | main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs index cdf57814d4..46924c50e8 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs @@ -184,7 +184,7 @@ namespace MonoDevelop.Gettext string file = foundInStore.GetValue (iter, (int)FoundInColumns.FullFileName) as string; int lineNr = 1; try { - lineNr = 1 + int.Parse (line); + lineNr = Math.Max(1, int.Parse (line)); } catch { } IdeApp.Workbench.OpenDocument (new FileOpenInformation (file, project, lineNr, 1, OpenDocumentOptions.Default)); |