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

Fixed error handling

This commit is contained in:
Martin Tůma 2020-04-22 00:47:12 +02:00
parent c1584f30d2
commit 159e5aeae9

View File

@ -113,10 +113,11 @@ Projection::Projection(const PCS *pcs) : _gcs(0), _ct(0), _geographic(false)
} }
Projection::Projection(const GCS *gcs, const CoordinateSystem &cs) 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) if (!gcs)
return; return;
_ct = new LatLon(gcs->angularUnits()); _ct = new LatLon(gcs->angularUnits());
} }