QTfrontend/drawmapscene.cpp
changeset 6616 f77bb02b669f
parent 5858 1f4a8cf9efcb
child 6700 e04da46ee43c
--- a/QTfrontend/drawmapscene.cpp	Mon Jan 30 23:20:28 2012 +0100
+++ b/QTfrontend/drawmapscene.cpp	Mon Jan 30 17:32:18 2012 -0500
@@ -58,7 +58,8 @@
             QPointF pos = mouseEvent->scenePos();
             path.setElementPositionAt(c - 1, pos.x(), pos.y());
 
-        } else
+        }
+        else
         {
             path.lineTo(mouseEvent->scenePos());
             paths.first().append(mouseEvent->scenePos().toPoint());
@@ -127,7 +128,8 @@
     oldItems.clear();
 
     // do this since clear() would _destroy_ all items
-    while(items().size()) {
+    while(items().size())
+    {
         oldItems.push_front(items().first());
         removeItem(items().first());
     }
@@ -214,7 +216,7 @@
     while(i < points.size())
     {
         if( (i != points.size() - 1)
-            && (sqr(prevPoint.x() - points[i].x()) + sqr(prevPoint.y() - points[i].y()) < 1000)
+                && (sqr(prevPoint.x() - points[i].x()) + sqr(prevPoint.y() - points[i].y()) < 1000)
           )
             points.removeAt(i);
         else
@@ -246,7 +248,7 @@
         path.moveTo(p);
 
         foreach(QPoint p, points)
-            path.lineTo(p);
+        path.lineTo(p);
     }
 
     return path;