summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sigmodr/widgets/mapeditor/WorldMapPlacement.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp
index c84f6dee..d27da5b3 100644
--- a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp
+++ b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp
@@ -214,6 +214,8 @@ static QList<QPolygon> mergePolygons(QPolygon polygon1, QPolygon polygon2)
if (0 <= pos2)
polygon2.remove(pos2);
}
+ if ((polygon1.size() + polygon2.size()) < 4)
+ break;
}
return polygons;
}