Fix #8004 - try and fix start line / end line cached node output
[roobuilder] / src / JsRender / NodeToValaWrapped.vala
index a641c69..451d9ef 100644 (file)
@@ -56,12 +56,13 @@ public class JsRender.NodeToValaWrapped : NodeToVala {
        {
                //return this.mungeToString(this.node);
                if (this.node.as_source_version > 0 && 
-                       this.node.as_source_version == this.node.updated_count
-                       && this.node.as_source != ""
+                       this.node.as_source_version == this.node.updated_count &&
+                       this.node.as_source_start_line == cur_line &&
+                       this.node.as_source != ""
                ) {
                        return this.node.as_source;
                }
-       
+               this.node.as_source_start_line = cur_line;
                
                this.namespaceHeader();
                this.globalVars();
@@ -86,7 +87,7 @@ public class JsRender.NodeToValaWrapped : NodeToVala {
                this.iterChildren();
                this.namespaceFooter();
                
-               
                this.node.as_source_version = this.node.updated_count;
                this.node.as_source == this.ret;
                return this.ret;