# HG changeset patch
# User koda
# Date 1302175271 -7200
# Node ID d70febb5112550c5543b52ea86d2ac2a8ca414d5
# Parent  276410cc1178e3db0caedd01d17d87aae4798597# Parent  b7483e29ea8c67671342dd259d2a25f478f22328
merge

diff -r 276410cc1178 -r d70febb51125 QTfrontend/M3Panel.mm
diff -r 276410cc1178 -r d70febb51125 QTfrontend/SDLs.cpp
diff -r 276410cc1178 -r d70febb51125 QTfrontend/drawmapscene.cpp
--- a/QTfrontend/drawmapscene.cpp	Thu Apr 07 01:45:38 2011 +0200
+++ b/QTfrontend/drawmapscene.cpp	Thu Apr 07 13:21:11 2011 +0200
@@ -86,14 +86,17 @@
 
 void DrawMapScene::mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent)
 {
-    QPainterPath path = m_currPath->path();
-    path.lineTo(mouseEvent->scenePos());
-    paths.first().append(mouseEvent->scenePos().toPoint());
-    m_currPath->setPath(path);
+    if (m_currPath)
+    {
+        QPainterPath path = m_currPath->path();
+        path.lineTo(mouseEvent->scenePos());
+        paths.first().append(mouseEvent->scenePos().toPoint());
+        m_currPath->setPath(path);
 
-    simplifyLast();
+        simplifyLast();
 
-    m_currPath = 0;
+        m_currPath = 0;
+    }
 }
 
 void DrawMapScene::undo()