summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-04-04 18:08:58 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-04-04 18:08:58 -0400
commit581acfbcd73e9e97dd0a8d1212af6690462906e9 (patch)
treebde6552f258367a453ffb13479eaed3bf6ff89e3
parent572224fea687b5bc7f48b4b47586e058c2f13dcb (diff)
Fix the second parameter of the touch check
-rw-r--r--sigmodr/widgets/mapeditor/WorldMapPlacement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp
index a7413d69..65c05f7a 100644
--- a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp
+++ b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp
@@ -113,12 +113,12 @@ bool WorldMapPlacement::touches(const QPolygon& polygon1, const QPolygon& polygo
{
foreach (const QPoint& point, polygon1)
{
- if (polygon2.containsPoint(point))
+ if (polygon2.containsPoint(point, Qt::OddEvenFill))
return true;
}
foreach (const QPoint& point, polygon2)
{
- if (polygon1.containsPoint(point))
+ if (polygon1.containsPoint(point, Qt::OddEvenFill))
return true;
}
return false;