Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorF. Phoenix <fphoenix@email.com>2016-11-23 14:57:37 +0300
committertherzok <marius.ungureanu@xamarin.com>2017-01-12 17:51:17 +0300
commit3ab8a62f4e96622a2a4075b26d5731da03cc2066 (patch)
treea14b4c8e04c1f82c3b1cd33535896fcf1f259ed1 /main/src/addins/MonoDevelop.Gettext
parent7cf61b338159f0cdd240a3b8e05d82cd6b02d133 (diff)
[Gettext] Changed line counting when opening references in PO Editor from 0 to 1
Additional to 7d161b23a287120d8fbd6c829077f66041984536
Diffstat (limited to 'main/src/addins/MonoDevelop.Gettext')
-rw-r--r--main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/POEditorWidget.cs2
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));