From 0984ee1887d38d33dde81cbefac45e114361eb47 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 23 Nov 2007 07:30:30 +0000 Subject: [PATCH] Minor changes --- src/VISUGUI/VisuGUI_Displayer.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.2