Integrated support for shape translation in undo commands.

This commit is contained in:
Tats
2015-07-19 22:08:59 -06:00
parent 24575c1e55
commit 4d71dc575e
6 changed files with 41 additions and 33 deletions

View File

@@ -1109,9 +1109,9 @@ void MainWindow::cloneMappingItem(uid mappingId)
// Scaling of duplicated mapping
if (shapeType == "quad" || shapeType == "mesh")
shapePtr->translate(20, 20);
shapePtr->translate(QPointF(20, 20));
else
shapePtr->translate(0, 20);
shapePtr->translate(QPointF(0, 20));
// Create new duplicated mapping item
Mapping::ptr clonedMapping(mapping);