mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Return the correct error value
This commit is contained in:
parent
045cbe81bf
commit
0c8e864d32
@ -291,7 +291,7 @@ Projection::Method GeoTIFF::method(QMap<quint16, Value> &kv)
|
||||
|
||||
if (!IS_SET(kv, ProjCoordTransGeoKey)) {
|
||||
_errorString = "Missing coordinate transformation method";
|
||||
return false;
|
||||
return Projection::Method();
|
||||
}
|
||||
|
||||
quint16 index = kv.value(ProjCoordTransGeoKey).SHORT;
|
||||
@ -299,7 +299,7 @@ Projection::Method GeoTIFF::method(QMap<quint16, Value> &kv)
|
||||
|
||||
if (!epsg) {
|
||||
_errorString = QString("Unknown coordinate transformation method");
|
||||
return false;
|
||||
return Projection::Method();
|
||||
}
|
||||
|
||||
return Projection::Method(epsg);
|
||||
|
Loading…
Reference in New Issue
Block a user