src/JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 04:41:29 +0000 (12:41 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 04:41:29 +0000 (12:41 +0800)
src/JsRender/NodeToVala.vala

index baf9a7e..0e68c24 100644 (file)
@@ -51,7 +51,9 @@ public class JsRender.NodeToVala : Object {
                this.cls = node.xvala_cls;
                this.xcls = node.xvala_xcls;
                this.ret = "";
-               node.line = parent == null ? 0 : .line;
+               this.cur_line = parent == null ? 0 : parent.cur_line;
+               node.line = this.cur_line;
+               
                this.top = parent == null ? this : parent.top;
                this.ignoreList = new Gee.ArrayList<string>();
                this.ignoreWrappedList  = new Gee.ArrayList<string>();