From 159e5aeae9e8c5596c40d31d82c68c93cff08569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 22 Apr 2020 00:47:12 +0200 Subject: [PATCH] Fixed error handling --- src/map/projection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/projection.cpp b/src/map/projection.cpp index d0d022f8..c6542ac3 100644 --- a/src/map/projection.cpp +++ b/src/map/projection.cpp @@ -113,10 +113,11 @@ Projection::Projection(const PCS *pcs) : _gcs(0), _ct(0), _geographic(false) } Projection::Projection(const GCS *gcs, const CoordinateSystem &cs) - : _gcs(gcs), _units(LinearUnits(9001)), _cs(cs), _geographic(true) + : _gcs(gcs), _ct(0), _units(LinearUnits(9001)), _cs(cs), _geographic(true) { if (!gcs) return; + _ct = new LatLon(gcs->angularUnits()); }