From 097c6e549c04bff8380059a595471c09f84ef6b6 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@cnes.fr> Date: Tue, 15 Dec 2015 11:52:55 +0100 Subject: [PATCH] BUG: Wrong type in dynamic_cast when writing ComplexOutputImageParameter with double precision --- .../src/otbWrapperComplexOutputImageParameter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperComplexOutputImageParameter.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperComplexOutputImageParameter.cxx index d4f157e02e..2421c4fe81 100644 --- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperComplexOutputImageParameter.cxx +++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperComplexOutputImageParameter.cxx @@ -133,7 +133,7 @@ ComplexOutputImageParameter::Write() } else if (dynamic_cast<ComplexDoubleImageType*>(m_Image.GetPointer())) { - SwitchImageWrite<DoubleImageType>(); + SwitchImageWrite<ComplexDoubleImageType>(); } else if (dynamic_cast<ComplexFloatVectorImageType*>(m_Image.GetPointer())) { -- GitLab