1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Fixed KMZ maps bounds computation

This commit is contained in:
Martin Tůma 2023-05-04 21:14:52 +02:00
parent a4a54101a3
commit ccfb748404

View File

@ -157,7 +157,7 @@ void KMZMap::computeBounds()
_adjust = 0;
_bounds = QVector<Bounds>(_tiles.count());
for (int i = 0; i < _tiles.count(); i++) {
QRectF xy(offsets.at(i), _tiles.at(i).bounds().size());
QRectF xy(offsets.at(i), _tiles.at(i).bounds().size() / _mapRatio);
_bounds[i] = Bounds(_tiles.at(i).bbox(), xy);
_adjust = qMin(qMin(_tiles.at(i).bounds().left(),
_tiles.at(i).bounds().top()), _adjust);