summaryrefslogtreecommitdiffstats
path: root/sigmodr/widgets/mapeditor
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-04-22 15:39:43 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-04-22 15:39:43 -0400
commit34d41e2352608936171332e12033732f1a2aeb7d (patch)
tree76df0d13de4c3a0afd70f7e4b6a4ea8832607bed /sigmodr/widgets/mapeditor
parent935e6b128edeb6ffbd163ccc489c9821807ecfc3 (diff)
downloadsigen-34d41e2352608936171332e12033732f1a2aeb7d.tar.gz
sigen-34d41e2352608936171332e12033732f1a2aeb7d.tar.xz
sigen-34d41e2352608936171332e12033732f1a2aeb7d.zip
Since some outlines are "holes", the contains() check fails
Diffstat (limited to 'sigmodr/widgets/mapeditor')
-rw-r--r--sigmodr/widgets/mapeditor/WorldMapPlacement.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp
index d6bd483e..bc66294e 100644
--- a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp
+++ b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp
@@ -222,8 +222,6 @@ QPoint WorldMapPlacement::find(const QPoint& point)
QRect best;
foreach (const QPolygon& polygon, m_polygons)
{
- if (!polygon.containsPoint(point, Qt::OddEvenFill))
- continue;
for (int i = 1; i < polygon.size(); ++i)
{
const QPoint last = polygon[i - 1];