From 8b7422b70a0c21b32a4652c25f4853516fd32517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 27 Aug 2017 12:19:33 +0200 Subject: [PATCH] Code cleanup --- src/atlas.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/atlas.cpp b/src/atlas.cpp index 7e33d515..b05dd8b7 100644 --- a/src/atlas.cpp +++ b/src/atlas.cpp @@ -303,8 +303,7 @@ void Atlas::draw(QPainter *painter, const QRectF &rect) { // All in one map for (int i = _zooms.at(_zoom).first; i <= _zooms.at(_zoom).second; i++) { - QRectF ir = rect.intersected(_bounds.at(i).second); - if (ir == rect) { + if (_bounds.at(i).second.contains(rect)) { draw(painter, rect, i); return; }