summaryrefslogtreecommitdiffstats
path: root/sigmodr/widgets/mapeditor/WorldMapItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/widgets/mapeditor/WorldMapItem.cpp')
-rw-r--r--sigmodr/widgets/mapeditor/WorldMapItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sigmodr/widgets/mapeditor/WorldMapItem.cpp b/sigmodr/widgets/mapeditor/WorldMapItem.cpp
index ef1f6e1b..6dceaed3 100644
--- a/sigmodr/widgets/mapeditor/WorldMapItem.cpp
+++ b/sigmodr/widgets/mapeditor/WorldMapItem.cpp
@@ -95,7 +95,7 @@ bool WorldMapItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectio
return false;
const QRectF rect = QRectF(scenePos(), QPointF(m_map->width(), m_map->height())).adjusted(1, 1, -1, -1);
const QRectF otherRect(item->scenePos(), QPointF(item->m_map->width(), item->m_map->height()));
- return rect.intersects(otherRect);
+ return !rect.intersected(otherRect).isNull();
}
int WorldMapItem::type() const