Basic Shapes: Move coords corrected for XML, DXF export

(Bounding Rectangle had to be updated with each move)



git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2912 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
abhishekm71
2014-03-07 12:34:47 +00:00
parent b969f86d55
commit 7242854045
3 changed files with 33 additions and 1 deletions

View File

@@ -497,6 +497,10 @@ void MoveElementsCommand::move(const QPointF &actual_movement) {
// deplace les shapes
foreach (QetShapeItem *dsi, content_to_move.shapes) {
dsi -> setPos(dsi -> pos() + actual_movement);
QRectF rec = dsi -> boundingRect();
rec.translate(actual_movement);
dsi -> setBoundingRect(rec);
dsi -> setPos(dsi -> pos() - actual_movement);
}
}