X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FImageMPR%2FImageMPR.cxx;h=ce1f2fc769c7f39232d3902adbb18353cb367936;hb=31e4cf1f3580efa059d3ffad14ba6a15d2372f5c;hp=70124e9827df95a02366245b0a53f1683abb0ad7;hpb=d5863750d8146d52ee20ce7835f5fb92e6d13fe9;p=cpPlugins.git diff --git a/appli/ImageMPR/ImageMPR.cxx b/appli/ImageMPR/ImageMPR.cxx index 70124e9..ce1f2fc 100644 --- a/appli/ImageMPR/ImageMPR.cxx +++ b/appli/ImageMPR/ImageMPR.cxx @@ -166,18 +166,8 @@ _AssociatePluginsToMenu( ) if( name == "" ) \ return; \ TImage* image = this->m_Plugins.GetData< TImage >( name ); \ - vtkImageData* vimage = image->GetVTK< vtkImageData >( ); \ - if( vimage != NULL ) \ - { \ - this->m_UI->MPR->AddImage( vimage, name ); \ - this->m_UI->MPR->ShowData( name ); \ - } \ - else \ - QMessageBox::critical( \ - this, \ - QMessageBox::tr( "Error showing image." ), \ - QMessageBox::tr( "Image read, but no valid VTK conversion found." ) \ - ); \ + this->m_UI->MPR->AddData( image, name, "" ); \ + this->m_UI->MPR->ShowData( name ); \ } \ catch( std::exception& err ) \ { \