mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-10 09:40:41 +02:00
Integrated support for shape translation in undo commands.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user