From 4d0c61937ceeafeae4230653516909330f2ccc22 Mon Sep 17 00:00:00 2001 From: xavierqet Date: Sun, 20 Jan 2008 20:28:52 +0000 Subject: [PATCH] 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 --- editor/elementscene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/elementscene.cpp b/editor/elementscene.cpp index 3f4ffb3e1..c061ba69d 100644 --- a/editor/elementscene.cpp +++ b/editor/elementscene.cpp @@ -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;