From: asl Date: Wed, 5 Oct 2005 06:30:13 +0000 (+0000) Subject: All modules must use SVTK package instead VTK X-Git-Tag: ForTest_3_1_0a2~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9285199fc082b113c36db6c2ca4b3ea39731314;p=modules%2Fvisu.git All modules must use SVTK package instead VTK --- 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);