From 610ac3d73f251bce93e45ec93cc4efcb7b332eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 19 Apr 2017 00:07:01 +0200 Subject: [PATCH] Fixed atlas zoom fitting algorithm --- src/atlas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atlas.cpp b/src/atlas.cpp index 85a93238..6a3d44c8 100644 --- a/src/atlas.cpp +++ b/src/atlas.cpp @@ -186,7 +186,7 @@ qreal Atlas::zoomFit(const QSize &size, const QRectF &br) for (int z = 0; z < _zooms.count(); z++) { for (int i = _zooms.at(z).first; i <= _zooms.at(z).second; i++) { - if (_bounds.at(i).first.contains(_maps.at(i)->ll2pp(br.center()))) + if (!_bounds.at(i).first.contains(_maps.at(i)->ll2pp(br.center()))) continue; QRect sbr = QRectF(_maps.at(i)->ll2xy(br.topLeft()),