]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor changes
authorapo <apo@opencascade.com>
Fri, 23 Nov 2007 07:30:30 +0000 (07:30 +0000)
committerapo <apo@opencascade.com>
Fri, 23 Nov 2007 07:30:30 +0000 (07:30 +0000)
src/VISUGUI/VisuGUI_Displayer.cxx

index 49df36c63ef334a1bad82cc441a2fc455938a542..2361b992f7a8582e4ad09e13163f7ccaa0b2c88c 100644 (file)
@@ -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::Base_i*>(VISU::GetServant(anObj).in());
+
+    if ( !aBase )
+      return false;
+
     if(aBase->GetType() == VISU::TCOLOREDPRS3DHOLDER)
       return true;