1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +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
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;
}