From f9285199fc082b113c36db6c2ca4b3ea39731314 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 5 Oct 2005 06:30:13 +0000 Subject: [PATCH] All modules must use SVTK package instead VTK --- src/VISUGUI/VisuGUI_Tools.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index cf7103a1..030fdd06 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -462,9 +462,11 @@ namespace VISU ChangeRepresentation (const SalomeApp_Module* theModule, VISU::PresentationType theType) { - SUIT_ViewWindow* aView = GetActiveView(theModule, VTKViewer_Viewer::Type()); + SUIT_ViewWindow* aView = GetActiveView(theModule, SVTK_Viewer::Type()); if (!aView) return; - SVTK_ViewWindow* vw = (SVTK_ViewWindow*) aView; + SVTK_ViewWindow* vw = dynamic_cast( aView ); + if( !vw ) + return; Handle(SALOME_InteractiveObject) anIO; CORBA::Object_var anObject = GetSelectedObj(theModule, &anIO); -- 2.30.2