QTfrontend/drawmapscene.cpp
changeset 6935 472ed92c4173
parent 6934 14a230552c2e
child 6952 7f70f37bbf08
--- a/QTfrontend/drawmapscene.cpp	Fri Apr 27 00:43:48 2012 +0400
+++ b/QTfrontend/drawmapscene.cpp	Fri Apr 27 22:15:08 2012 +0400
@@ -325,6 +325,15 @@
     emit pathChanged();
 }
 
+int DrawMapScene::pointsCount()
+{
+    int cnt = 0;
+    foreach(PathParams p, paths)
+        cnt += p.points.size();
+
+    return cnt;
+}
+
 QPainterPath DrawMapScene::pointsToPath(const QList<QPoint> points)
 {
     QPainterPath path;