]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/BaseObjects/Object.cxx
...
[cpPlugins.git] / lib / cpPlugins / BaseObjects / Object.cxx
index 89d7fe6a59c4c5a4a60d7ceb44a08c398dc56c8f..e372c99747f1584e611479ea0efb9dd5014e5575 100644 (file)
@@ -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( ) );