From 0a281f8ca8a72269391e0516b73b3d5bea57c880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 18 Feb 2024 07:38:46 +0100 Subject: [PATCH] Fixed broken ENC atlases names (center locations) --- src/map/encatlas.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/encatlas.cpp b/src/map/encatlas.cpp index 70bc0ba9..409aa163 100644 --- a/src/map/encatlas.cpp +++ b/src/map/encatlas.cpp @@ -116,7 +116,6 @@ void ENCAtlas::addMap(const QDir &dir, const QByteArray &file, it.value()->addMap(bounds, path); - _name = "ENC (" + Format::coordinates(bounds.center(), DecimalDegrees) + ")"; _llBounds |= bounds; } @@ -148,6 +147,8 @@ ENCAtlas::ENCAtlas(const QString &fileName, QObject *parent) return; } + _name = "ENC (" + Format::coordinates(_llBounds.center(), DecimalDegrees) + + ")"; _usage = _data.firstKey(); _zoom = zooms(_usage).min(); updateTransform();