X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FBuilder4%2FWindowLeftProps.bjs;h=657d9b1ea9b2b5ada53643c88d07154cb50e1381;hb=f056fe0b7bb6a76ad57420ee5c806a242c77fb1b;hp=b14e7ab5b30c4a6b2696416396ea5fc3d75d770e;hpb=173617f1a97bfc9af24e73f7da986fd192fd0747;p=roobuilder diff --git a/src/Builder4/WindowLeftProps.bjs b/src/Builder4/WindowLeftProps.bjs index b14e7ab5b..657d9b1ea 100644 --- a/src/Builder4/WindowLeftProps.bjs +++ b/src/Builder4/WindowLeftProps.bjs @@ -1078,13 +1078,13 @@ " \t\t ", " \t}", " \t*/", - "\t\tGLib.debug(\"Get Widget At Row %d\", (int)row);", + "\t\t//GLib.debug(\"Get Widget At Row %d\", (int)row);", " var child = this.el.get_first_child(); ", " \tvar line_no = -1; ", " \tvar reading_header = true;", "", " \twhile (child != null) {", - "\t\t\tGLib.debug(\"Got %s\", child.get_type().name());", + "\t\t\t//GLib.debug(\"Got %s\", child.get_type().name());", " \t if (reading_header) {", "\t\t\t ", "\t\t\t ", @@ -1102,12 +1102,12 @@ "\t\t }", "\t\t line_no++;", "\t\t\tif (line_no == row) {", - "\t\t\t\tGLib.debug(\"Returning widget %s\", child.get_type().name());", + "\t\t\t\t//GLib.debug(\"Returning widget %s\", child.get_type().name());", "\t\t\t return (Gtk.Widget)child;", "\t\t }", "\t child = child.get_next_sibling(); ", " \t}", - "\t\tGLib.debug(\"Rturning null\");", + "\t\t//GLib.debug(\"Rturning null\");", " return null;", "", " }" @@ -1516,12 +1516,14 @@ "\t", "\t\t ", "// print(\"get inter\\n\");", - "\t var node= file.lineToNode( (int)diag.range.start.line) ;", - "\t if (node == null || node.oid != this.node.oid) {", + "\t var node = file.lineToNode( (int)diag.range.start.line) ;", + "\t if (node == null || this.node == null || node.oid != this.node.oid) {", "\t \tcontinue;", " \t}", " \tvar prop = node.lineToProp( (int)diag.range.start.line) ;", - " \t", + " \tif (prop == null) {", + " \t\tcontinue;", + "\t\t}", " \tvar row = _this.selmodel.propToRow(prop);", " \tif (row < 0) {", " \t\tcontinue;",