From c4f5c393db5046eae9458aa41f7cb9376d00f220 Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Tue, 8 Nov 2011 11:37:25 +0100 Subject: [PATCH] ENH: correct the IsRoot method --- Code/ApplicationEngine/otbWrapperParameter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/ApplicationEngine/otbWrapperParameter.h b/Code/ApplicationEngine/otbWrapperParameter.h index 4dc55d1ac2..1a134d8da6 100644 --- a/Code/ApplicationEngine/otbWrapperParameter.h +++ b/Code/ApplicationEngine/otbWrapperParameter.h @@ -173,7 +173,7 @@ public: /** Is the paramter a root or a child of another param */ virtual bool IsRoot() { - return m_Root.IsNull(); + return m_Root == this; } /** Add a child of this parameter when the param is a Group or a -- GitLab