src/Palete/ValaSource.vala
authorAlan Knowles <alan@roojs.com>
Wed, 4 Mar 2015 07:59:33 +0000 (15:59 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 4 Mar 2015 07:59:33 +0000 (15:59 +0800)
src/Palete/ValaSource.vala

index 89d14a0..cabaa51 100644 (file)
@@ -71,8 +71,16 @@ namespace Palete {
                            string ptype,
                            string val)
                {
-
+                       Gee.HashMap<int,string> ret = new Gee.HashMap<int,string> ();
                        var hash = ptype == "listener" ? node.listeners : node.props;
+                       
+                       // untill we get a smarter renderer..
+                       // we have some scenarios where changing the value does not work
+                       if (prop == "* xns" || prop == "xtype") {
+                               return ret;
+                       }
+                               
+                       
                        var old = hash.get(prop);
                        var newval = "/*--VALACHECK-START--*/ " + val ;
                        
@@ -88,7 +96,7 @@ namespace Palete {
                        this.checkString(tmpstring);
                        hash.set(prop, old);
                        // modify report
-                       Gee.HashMap<int,string> ret = new Gee.HashMap<int,string> ();
+                       
                        var iter = this.report.line_errors.map_iterator();
                        while (iter.next()) {
                                // print("%d : %s\n",iter.get_key() - offset, iter.get_value());