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:
xavierqet
2008-01-20 20:28:52 +00:00
parent cec010c1e7
commit 4d0c61937c

View File

@@ -283,7 +283,7 @@ void ElementScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *e) {
}
}
} else if (e -> button() & Qt::RightButton) {
if (behavior == Polygon) {
if (behavior == Polygon && current_polygon != NULL) {
behavior = Normal;
undo_stack.push(new AddPartCommand(tr("polygone"), this, current_polygon));
current_polygon = NULL;