From 0c8e864d32620150019e3f72132be01416f7b2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 14 Jan 2018 22:51:20 +0100 Subject: [PATCH] Return the correct error value --- src/map/geotiff.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/geotiff.cpp b/src/map/geotiff.cpp index a382f9e4..367b9bf0 100644 --- a/src/map/geotiff.cpp +++ b/src/map/geotiff.cpp @@ -291,7 +291,7 @@ Projection::Method GeoTIFF::method(QMap &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 &kv) if (!epsg) { _errorString = QString("Unknown coordinate transformation method"); - return false; + return Projection::Method(); } return Projection::Method(epsg);