[poincare] Constant symbol are not variables

This commit is contained in:
Émilie Feral
2018-10-29 13:59:10 +01:00
parent e3d2b13758
commit d9861f32c4

View File

@@ -68,7 +68,7 @@ int SymbolNode::getVariables(Context & context, isVariableTest isVariable, char
while(variables[variablesIndex] != 0) {
variablesIndex+= maxSizeVariable;
}
if (isVariable(m_name)) {
if (!isConstant() && isVariable(m_name)) {
int index = 0;
while (variables[index] != 0) {
if (strcmp(m_name, &variables[index]) == 0) {