Skip to content

Commit

Permalink
apply modification to correct property
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 1, 2016
1 parent 01fd5ce commit 04a56fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Gui/Placement.cpp
Expand Up @@ -219,15 +219,17 @@ void Placement::applyPlacement(const QString& data, bool incremental)
QString cmd;
if (incremental)
cmd = QString::fromLatin1(
"App.getDocument(\"%1\").%2.Placement=%3.multiply(App.getDocument(\"%1\").%2.Placement)")
"App.getDocument(\"%1\").%2.%3=%4.multiply(App.getDocument(\"%1\").%2.%3)")
.arg(QLatin1String((*it)->getDocument()->getName()))
.arg(QLatin1String((*it)->getNameInDocument()))
.arg(QLatin1String(this->propertyName.c_str()))
.arg(data);
else {
cmd = QString::fromLatin1(
"App.getDocument(\"%1\").%2.Placement=%3")
"App.getDocument(\"%1\").%2.%3=%4")
.arg(QLatin1String((*it)->getDocument()->getName()))
.arg(QLatin1String((*it)->getNameInDocument()))
.arg(QLatin1String(this->propertyName.c_str()))
.arg(data);
}

Expand Down

0 comments on commit 04a56fb

Please sign in to comment.