From b84295c3163799ffbfe90971ff34f3d71547f9a5 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 27 Nov 2006 11:46:29 +0000 Subject: [PATCH] To use a new method for ColoredPrs3dHolder to allow user to get know what type of presentation the holder instance is mananged --- src/VISUGUI/VisuGUI_PopupTools.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/VISUGUI/VisuGUI_PopupTools.cxx b/src/VISUGUI/VisuGUI_PopupTools.cxx index 45d034d9..0708e576 100644 --- a/src/VISUGUI/VisuGUI_PopupTools.cxx +++ b/src/VISUGUI/VisuGUI_PopupTools.cxx @@ -86,6 +86,10 @@ QString VisuGUI_Selection::type( const int ind ) const VISU::Base_var aVisuObj = VISU::Base::_narrow( anObject ); if ( !CORBA::is_nil( aVisuObj ) ){ VISU::VISUType aType = aVisuObj->GetType(); + if(aType == VISU::TCOLOREDPRS3DHOLDER){ + VISU::ColoredPrs3dHolder_var aHolder = VISU::ColoredPrs3dHolder::_narrow(aVisuObj); + aType = aHolder->GetPrsType(); + } switch (aType) { ENUM2STRING( aResStr, VISU::TVISUGEN ); ENUM2STRING( aResStr, VISU::TRESULT ); -- 2.39.2