Fixed writing of variables

This commit is contained in:
Arin Alex
2016-06-29 21:24:54 +03:00
parent a010c2012f
commit 659a2dea00
2 changed files with 9 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ void VariablesHolder::addVariable(const QString& name, const QVariant& value, Va
varValue->setVarType(type);
varValue->setRenderPass(pass);
m_varNames.insert(name,varValue);
if (type==VarDesc::User)
if (type==VarDesc::Report)
m_userVariables.append(varValue);
} else {
throw ReportError(tr("variable with name ")+name+tr(" already exists !!"));