]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Fix hidden parameters at the end of the parameter list
authorJürg Billeter <j@bitron.ch>
Tue, 17 Aug 2010 19:02:43 +0000 (21:02 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 17 Aug 2010 19:02:43 +0000 (21:02 +0200)
vala/valagirparser.vala

index f235b2ab05fcbbc12129a4dbda9998261981ea8a..b9965964b79825c551986362b5f7c2b0249f4900 100644 (file)
@@ -1163,6 +1163,10 @@ public class Vala.GirParser : CodeVisitor {
                                j++;
                        } else {
                                info.keep = false;
+                               // make sure that vala_idx is always set
+                               // the above if branch does not set vala_idx for
+                               // hidden parameters at the end of the parameter list
+                               info.vala_idx = (j - 1) + (i - last) * 0.1F;
                        }
                        i++;
                }