mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
Correction dans l'editeur pour le trace d'un polygone
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@284 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -283,7 +283,7 @@ void ElementScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (e -> button() & Qt::RightButton) {
|
} else if (e -> button() & Qt::RightButton) {
|
||||||
if (behavior == Polygon) {
|
if (behavior == Polygon && current_polygon != NULL) {
|
||||||
behavior = Normal;
|
behavior = Normal;
|
||||||
undo_stack.push(new AddPartCommand(tr("polygone"), this, current_polygon));
|
undo_stack.push(new AddPartCommand(tr("polygone"), this, current_polygon));
|
||||||
current_polygon = NULL;
|
current_polygon = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user