src/Project/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Tue, 26 May 2015 05:32:33 +0000 (13:32 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 May 2015 05:32:33 +0000 (13:32 +0800)
src/Project/Gtk.vala

index 07a159a..c09fc3e 100644 (file)
@@ -204,11 +204,16 @@ namespace Project {
                                        // any other valid types???
                                
                                }
+                               
+                               
+                               
+                               
+                               
                                // add the cfiles to ret - if they do not have a vala...
                                for (var i = 0; i < cfiles.size; i ++) {
                                        
-                                       var vv = (new Regex("\\.c$")).replace(  
-                                                       cfiles.get(i), cfiles.get(i).length, 0, ".vala");
+                                       var fn = cfiles.get(i);
+                                       var vv = (new Regex("\\.c$")).replace( fn, fn, 0, ".vala");
                                                        
                                        if (ret.index_of( vv) > -1) {
                                                continue;