From: rnv Date: Mon, 16 May 2011 13:40:25 +0000 (+0000) Subject: Fix for the bug: visibility state of PointMap3D for the VTK viewer is incorrect. X-Git-Tag: V6_3_BR20110517 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=62cc6947acd2ee817d23c1757d4c01627122fd93;p=modules%2Fvisu.git Fix for the bug: visibility state of PointMap3D for the VTK viewer is incorrect. --- diff --git a/src/VISUGUI/VisuGUI_Displayer.cxx b/src/VISUGUI/VisuGUI_Displayer.cxx index 3545896c..16310558 100644 --- a/src/VISUGUI/VisuGUI_Displayer.cxx +++ b/src/VISUGUI/VisuGUI_Displayer.cxx @@ -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::GetServant( anObj ).in())) { + } else if( VISU::Table_i* aTable = dynamic_cast( VISU::GetServant( anObj ).in()) ) { + SPlot2d_Viewer* view2D = dynamic_cast(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 );