apply modification to correct property
This commit is contained in:
parent
01fd5ce6f3
commit
04a56fbceb
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user