From: Leonardo Florez-Valencia Date: Tue, 10 Nov 2015 02:25:04 +0000 (-0500) Subject: It compiles again. But it does not show anything: still working on OpenGL - Leo X-Git-Tag: v0.1~303^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=09544b7229f2950065edb1a5565a1184eca67355;p=cpPlugins.git It compiles again. But it does not show anything: still working on OpenGL - Leo --- 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 ) \ { \