this way around the filter logic status is more common sense.
authorWilfried Goesgens <willi@arangodb.com>
Sun, 11 Oct 2015 11:50:24 +0000 (13:50 +0200)
committerWilfried Goesgens <willi@arangodb.com>
Sun, 11 Oct 2015 11:50:24 +0000 (13:50 +0200)
webcit/subst.c

index ab4edce38692746f02a8a89f06cd0ab4ba8f9637..fd72242b2f7c37cfce01b6d399b13bc70326666f 100644 (file)
@@ -2163,7 +2163,7 @@ void tmpl_iterate_subtmpl(StrBuf *Target, WCTemplputParams *TP)
                        if ((Status.n >= StartAt) && (Status.n <= StopAt)) {
 
                                if ((It->Filter != NULL) &&
-                                   It->Filter(Status.Key, Status.KeyLen, vContext, Target, TP)) 
+                                   !It->Filter(Status.Key, Status.KeyLen, vContext, Target, TP)) 
                                {
                                        continue;
                                }