allow variable x when checking if from math formula is valid

This commit is contained in:
Jan Käberich 2025-05-18 12:54:50 +02:00
parent 8a172d7f40
commit c808c6d4e4

View file

@ -427,6 +427,9 @@ QString Trace::getMathFormulaError() const
break;
}
}
if(varName == "x") {
found = true;
}
if(!found) {
return "Unknown variable: "+varName;
}