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

Fixed broken ENC atlases names (center locations)

This commit is contained in:
Martin Tůma 2024-02-18 07:38:46 +01:00
parent 32262e7c46
commit 0a281f8ca8

View File

@ -116,7 +116,6 @@ void ENCAtlas::addMap(const QDir &dir, const QByteArray &file,
it.value()->addMap(bounds, path); it.value()->addMap(bounds, path);
_name = "ENC (" + Format::coordinates(bounds.center(), DecimalDegrees) + ")";
_llBounds |= bounds; _llBounds |= bounds;
} }
@ -148,6 +147,8 @@ ENCAtlas::ENCAtlas(const QString &fileName, QObject *parent)
return; return;
} }
_name = "ENC (" + Format::coordinates(_llBounds.center(), DecimalDegrees)
+ ")";
_usage = _data.firstKey(); _usage = _data.firstKey();
_zoom = zooms(_usage).min(); _zoom = zooms(_usage).min();
updateTransform(); updateTransform();