src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 11:13:26 +0000 (19:13 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 11:13:26 +0000 (19:13 +0800)
src/Builder4/WindowState.vala

index 2e76de2..42bfb7a 100644 (file)
@@ -454,7 +454,7 @@ public class WindowState : Object
                        this.switchState (State.PREVIEW); 
                        // this triggers loadItems..
                        this.left_tree.model.loadFile(file);
-                       if (file.project.xtype == "Gtk" ) {
+                       if (file.project.xtype == "Gtk" && line> -1 ) {
                                this.window_gladeview.scroll_to_line(line);
                        }