[latexila] Build View: fix the selection of a single line in the document



commit 3773c30e619ceabb74052c0f9bd1d9f7ed3d2478
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Fri Oct 19 21:51:45 2012 +0200

    Build View: fix the selection of a single line in the document
    
    When a warning is selected in the build view, if a file and a line is
    provided, the line will be selected in the .tex file. LaTeX can specify
    the start and the end line. If the end line is not specified, only the
    start line is selected.

 src/build_view.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/build_view.vala b/src/build_view.vala
index 02cc0c2..009c2f1 100644
--- a/src/build_view.vala
+++ b/src/build_view.vala
@@ -323,7 +323,7 @@ public class BuildView : TreeView
 
         int end_line = msg.end_line;
         if (end_line == -1)
-            end_line = msg.start_line;
+            end_line = msg.start_line + 1;
 
         TreeIter iter;
         _store.append (out iter, parent);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]