]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for the bug: visibility state of PointMap3D for the VTK viewer is incorrect. V6_3_BR20110517 V6_3_BR20110518 V6_3_BR20110519
authorrnv <rnv@opencascade.com>
Mon, 16 May 2011 13:40:25 +0000 (13:40 +0000)
committerrnv <rnv@opencascade.com>
Mon, 16 May 2011 13:40:25 +0000 (13:40 +0000)
src/VISUGUI/VisuGUI_Displayer.cxx

index 3545896cd70bea378eab78e2c452d3ecc250cc87..16310558c804dc18e47d6120189bf0826ce62241 100644 (file)
@@ -128,8 +128,12 @@ bool VisuGUI_Displayer::IsDisplayed( const QString& id, SALOME_View* vf ) const
       }
     }
     return displayed;
-  } else if(VISU::Table_i* aTable = dynamic_cast<VISU::Table_i*>( VISU::GetServant( anObj ).in())) {
+  } else if( VISU::Table_i* aTable = dynamic_cast<VISU::Table_i*>( VISU::GetServant( anObj ).in()) ) {
 
+    SPlot2d_Viewer* view2D = dynamic_cast<SPlot2d_Viewer*>(vf);
+    if( !view2D )
+      return LightApp_Displayer::IsDisplayed(id, vf);
+    
     _PTR(SObject) TableSO = aStudy->studyDS()->FindObjectID( (const char*)id.toLatin1() );
     if( TableSO ) {
       _PTR(ChildIterator) Iter = aStudy->studyDS()->NewChildIterator( TableSO );