Skip to content
Snippets Groups Projects
Commit efe7a8a4 authored by Sven Langkamp's avatar Sven Langkamp Committed by Halla Rempt
Browse files

Fix moving of shapes in groups in shape layers

BUG:308942
parent e238d50a
No related branches found
No related tags found
No related merge requests found
......@@ -263,13 +263,19 @@ void KisShapeLayer::slotMoveShapes(const QPointF &diff)
QList<QPointF> prevPos;
QList<QPointF> newPos;
QList<KoShape*> shapes;
foreach (KoShape* shape, shapeManager()->shapes()) {
if (!dynamic_cast<KoShapeGroup*>(shape)) {
shapes.append(shape);
}
}
foreach (KoShape* shape, shapes) {
QPointF pos = shape->position();
prevPos << pos;
newPos << pos + diff;
}
KoShapeMoveCommand cmd(shapeManager()->shapes(), prevPos, newPos);
KoShapeMoveCommand cmd(shapes, prevPos, newPos);
cmd.redo();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment