diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/common.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/common.js index 450ae6d..ed544ab 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/common.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/common.js @@ -64,7 +64,7 @@ function parseArgumentsForFunction(args, usage1, usage2) { } else if(args.length == 2) { // Parse variable [f,variable] = args - if(typeof f != 'string' || typeof variable != 'number') + if(typeof f != 'string' || typeof variable != 'string') throw EvalError(qsTranslate('usage', 'Usage: %1').arg(usage2)) f = parser.parse(f).toJSFunction(variable, currentVars) } else