From bd8d2267c7b529728f2da319e427b1158b947199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 19 Mar 2024 19:12:47 +0100 Subject: [PATCH] Check if the conversion is valid/exists when loading the PCS entry --- src/map/pcs.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/map/pcs.cpp b/src/map/pcs.cpp index f5f3a1b5..4ed8a5a7 100644 --- a/src/map/pcs.cpp +++ b/src/map/pcs.cpp @@ -63,6 +63,11 @@ bool PCS::loadList(const QString &path) qWarning("%s:%d: Unknown GCS code", qPrintable(path), csv.line()); continue; } + if (Conversion::conversion(proj).isNull()) { + qWarning("%s:%d: Unknown projection code", qPrintable(path), + csv.line()); + continue; + } _pcss.insert(id, Entry(name, gcs, proj)); }