X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkFilterBase.cxx;h=482a82c52f249d365bea5e847e58c05da2ecd9ca;hb=417fa02691e61ff52abb5ce74c81d767755aca7e;hp=bea1b15043279698e432decfe8caa6d1dcd52dff;hpb=8e9577b513e5c23835d0e2cb58e5ccc04e90544a;p=clitk.git diff --git a/common/clitkFilterBase.cxx b/common/clitkFilterBase.cxx index bea1b15..482a82c 100644 --- a/common/clitkFilterBase.cxx +++ b/common/clitkFilterBase.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html - ======================================================================-====*/ + ===========================================================================**/ // clitk #include "clitkFilterBase.h" @@ -114,6 +114,8 @@ void clitk::FilterBase::StopSubStep() { int s = m_SubstepNumbers.back(); m_SubstepNumbers.pop_back(); SetCurrentStepNumber(s); - SetCurrentStepBaseId(m_SubstepID.back()); m_SubstepID.pop_back(); + if (m_SubstepID.size() != 0) { + SetCurrentStepBaseId(m_SubstepID.back()); } + else SetCurrentStepBaseId(""); }