From 2e1ddd368c219c2457049630c929ec7820bccb7a Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Tue, 25 Oct 2011 15:12:52 +0200 Subject: [PATCH] ENH: Mandatory Param in a non Mandatory Group must be tested regarding the activity status of its parent --- Code/ApplicationEngine/otbWrapperApplication.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Code/ApplicationEngine/otbWrapperApplication.cxx b/Code/ApplicationEngine/otbWrapperApplication.cxx index c53fc7cc18..b494825156 100644 --- a/Code/ApplicationEngine/otbWrapperApplication.cxx +++ b/Code/ApplicationEngine/otbWrapperApplication.cxx @@ -891,7 +891,9 @@ Application::IsApplicationReady() ++it) { // Check all Input Parameters - if (!this->HasValue(*it) && IsMandatory(*it)) + if (!this->HasValue(*it) + && IsMandatory(*it) + && GetParameterByKey(*it)->GetRoot()->GetActive()) { return false; } -- GitLab