Skip to content

Commit

Permalink
App: Removed VariableExpression::setName(), and replace call by setPa…
Browse files Browse the repository at this point in the history
…th(); it's use caused a crash (#2352).
  • Loading branch information
eivindkv authored and wwmayer committed Dec 9, 2015
1 parent c67b2be commit 4b5ae54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/App/Expression.h
Expand Up @@ -349,8 +349,6 @@ class AppExport VariableExpression : public UnitExpression {

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);
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Spreadsheet/App/PropertySheet.cpp
Expand Up @@ -579,7 +579,7 @@ class RewriteExpressionVisitor : public ExpressionVisitor {
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;
}
}
Expand Down

0 comments on commit 4b5ae54

Please sign in to comment.