1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Fixed broken map scale computation

This commit is contained in:
Martin Tůma 2017-11-27 08:48:37 +01:00
parent bc218c9f65
commit 51c0c31838

View File

@ -286,9 +286,9 @@ bool OfflineMap::computeResolution(QList<ReferencePoint> &points)
minLon = i;
if (points.at(i).ll.lon() > points.at(maxLon).ll.lon())
maxLon = i;
if (points.at(i).ll.lat() < points.at(minLat).ll.lon())
if (points.at(i).ll.lat() < points.at(minLat).ll.lat())
minLat = i;
if (points.at(i).ll.lat() > points.at(maxLat).ll.lon())
if (points.at(i).ll.lat() > points.at(maxLat).ll.lat())
maxLat = i;
}