diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-04-04 18:08:58 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-04-04 18:08:58 -0400 |
| commit | 581acfbcd73e9e97dd0a8d1212af6690462906e9 (patch) | |
| tree | bde6552f258367a453ffb13479eaed3bf6ff89e3 | |
| parent | 572224fea687b5bc7f48b4b47586e058c2f13dcb (diff) | |
Fix the second parameter of the touch check
| -rw-r--r-- | sigmodr/widgets/mapeditor/WorldMapPlacement.cpp | 4 |
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; |
