App: Removed VariableExpression::setName(), and replace call by setPath(); it's use caused a crash (#2352).

This commit is contained in:
Eivind Kvedalen 2015-12-03 21:36:21 +01:00 committed by wmayer
parent c67b2bed45
commit 4b5ae54e88
2 changed files with 1 additions and 3 deletions

View File

@ -349,8 +349,6 @@ public:
void setPath(const ObjectIdentifier & path);
void setName(const std::string & name) { assert(0); }
void renameDocumentObject(const std::string & oldName, const std::string & newName);
void renameDocument(const std::string &oldName, const std::string &newName);

View File

@ -579,7 +579,7 @@ public:
if (thisRow >= mRow || thisCol >= mCol) {
thisRow += mRowCount;
thisCol += mColCount;
varExpr->setName(columnName(thisCol) + rowName(thisRow));
varExpr->setPath(ObjectIdentifier(varExpr->getOwner(), columnName(thisCol) + rowName(thisRow)));
mChanged = true;
}
}