X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FBaseObjects%2FObject.cxx;h=e372c99747f1584e611479ea0efb9dd5014e5575;hb=514419c89876aa75880cabee60c14f7582b1d33c;hp=89d7fe6a59c4c5a4a60d7ceb44a08c398dc56c8f;hpb=d74a07c7e0854fcfe2b0189805b992785f3631e8;p=cpPlugins.git diff --git a/lib/cpPlugins/BaseObjects/Object.cxx b/lib/cpPlugins/BaseObjects/Object.cxx index 89d7fe6..e372c99 100644 --- a/lib/cpPlugins/BaseObjects/Object.cxx +++ b/lib/cpPlugins/BaseObjects/Object.cxx @@ -23,7 +23,7 @@ SetViewCoords( float x, float y ) { this->m_ViewX = x; this->m_ViewY = y; - // WARNING: do not call "this->Modified( )" -> It could lead to a + // WARNING: do not call "this->Modified( )" -> It could lead to // re-execution of all pipeline } @@ -51,8 +51,8 @@ GetMTime( ) const else if( i != NULL && v != NULL ) { auto iTime = i->GetMTime( ); - auto vTime = i->GetMTime( ); - return( itk::ModifiedTimeType( ( iTime > vTime )? iTime: vTime ) ); + auto vTime = v->GetMTime( ); + return( itk::ModifiedTimeType( ( iTime < vTime )? vTime: iTime ) ); } else return( this->Superclass::GetMTime( ) );