From 62cc6947acd2ee817d23c1757d4c01627122fd93 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 16 May 2011 13:40:25 +0000 Subject: [PATCH] Fix for the bug: visibility state of PointMap3D for the VTK viewer is incorrect. --- src/VISUGUI/VisuGUI_Displayer.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.39.2