From 09544b7229f2950065edb1a5565a1184eca67355 Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Mon, 9 Nov 2015 21:25:04 -0500 Subject: [PATCH] It compiles again. But it does not show anything: still working on OpenGL - Leo --- appli/ImageMPR/ImageMPR.cxx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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 ) \ { \ -- 2.47.1