DataFilter fix builtins (again)

.. the DataFilterFunctions[] were not processed correctly
   after validation of calls to named functions was added
   and the correction applied previously only worked for
   functions defined by the lexer/parser, not those defined
   in DataFilterFunctions[]

.. this fixes that, but it would be nice if this was cleaned
   up in to one unified place in the datafilter.
This commit is contained in:
Mark Liversedge
2015-12-23 15:34:27 +00:00
parent fe68dab877
commit 1e24312d79

View File

@@ -1206,7 +1206,7 @@ void Leaf::validateFilter(Context *context, DataFilterRuntime *df, Leaf *leaf)
}
// calling a user defined function, does it exist >=?
if (!df->functions.contains(leaf->function)) {
if (found == false && !df->functions.contains(leaf->function)) {
DataFiltererrors << QString(tr("unknown function %1")).arg(leaf->function);
leaf->inerror = true;