1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2017-08-27 12:19:33 +02:00
parent ef3da2e156
commit 8b7422b70a

View File

@ -303,8 +303,7 @@ void Atlas::draw(QPainter *painter, const QRectF &rect)
{ {
// All in one map // All in one map
for (int i = _zooms.at(_zoom).first; i <= _zooms.at(_zoom).second; i++) { for (int i = _zooms.at(_zoom).first; i <= _zooms.at(_zoom).second; i++) {
QRectF ir = rect.intersected(_bounds.at(i).second); if (_bounds.at(i).second.contains(rect)) {
if (ir == rect) {
draw(painter, rect, i); draw(painter, rect, i);
return; return;
} }