QTfrontend/drawmapscene.cpp
changeset 5040 c6cd873ac13a
parent 4976 088d40d8aba2
child 5108 b7483e29ea8c
--- a/QTfrontend/drawmapscene.cpp	Tue Mar 22 01:30:51 2011 -0400
+++ b/QTfrontend/drawmapscene.cpp	Tue Mar 22 19:27:14 2011 +0300
@@ -86,7 +86,10 @@
 
 void DrawMapScene::mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent)
 {
-    Q_UNUSED(mouseEvent);
+    QPainterPath path = m_currPath->path();
+    path.lineTo(mouseEvent->scenePos());
+    paths.first().append(mouseEvent->scenePos().toPoint());
+    m_currPath->setPath(path);
 
     simplifyLast();