From e8af2479a47efb0d577b58746ec57c864fc0c664 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 17 Jan 2024 00:37:11 +0100 Subject: [PATCH] SingleOperation::exportToPROJStringGeneric(): fix wrong test/copy-error (master only) --- src/iso19111/operation/singleoperation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iso19111/operation/singleoperation.cpp b/src/iso19111/operation/singleoperation.cpp index 723dee31b6..ca34fd7255 100644 --- a/src/iso19111/operation/singleoperation.cpp +++ b/src/iso19111/operation/singleoperation.cpp @@ -4179,7 +4179,7 @@ bool SingleOperation::exportToPROJStringGeneric( const auto vertDst = dynamic_cast(targetCRS().get()); - if (!vertSrc) { + if (!vertDst) { throw io::FormattingException(concat( "Can apply ", methodName, " only to a target VerticalCRS")); }