1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Check if the conversion is valid/exists when loading the PCS entry

This commit is contained in:
Martin Tůma 2024-03-19 19:12:47 +01:00
parent 48396e254b
commit bd8d2267c7

View File

@ -63,6 +63,11 @@ bool PCS::loadList(const QString &path)
qWarning("%s:%d: Unknown GCS code", qPrintable(path), csv.line()); qWarning("%s:%d: Unknown GCS code", qPrintable(path), csv.line());
continue; continue;
} }
if (Conversion::conversion(proj).isNull()) {
qWarning("%s:%d: Unknown projection code", qPrintable(path),
csv.line());
continue;
}
_pcss.insert(id, Entry(name, gcs, proj)); _pcss.insert(id, Entry(name, gcs, proj));
} }