From: apo Date: Fri, 23 Nov 2007 07:30:30 +0000 (+0000) Subject: Minor changes X-Git-Tag: mergefrom_MERGE_MULTIPR_EVOLUTION_07-Dec-07~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0984ee1887d38d33dde81cbefac45e114361eb47;p=modules%2Fvisu.git Minor changes --- diff --git a/src/VISUGUI/VisuGUI_Displayer.cxx b/src/VISUGUI/VisuGUI_Displayer.cxx index 49df36c6..2361b992 100644 --- a/src/VISUGUI/VisuGUI_Displayer.cxx +++ b/src/VISUGUI/VisuGUI_Displayer.cxx @@ -266,6 +266,10 @@ bool VisuGUI_Displayer::canBeDisplayed( const QString& entry, const QString& vie if( viewer_type==SVTK_Viewer::Type() || viewer_type==VVTK_Viewer::Type()) { VISU::Base_i* aBase = dynamic_cast(VISU::GetServant(anObj).in()); + + if ( !aBase ) + return false; + if(aBase->GetType() == VISU::TCOLOREDPRS3DHOLDER) return true;