From: dmv Date: Thu, 20 Nov 2008 12:35:42 +0000 (+0000) Subject: 5x: fatal error on cancel Deformed Shape X-Git-Tag: V5_1_0rc2~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9dd8790ff738d5266155b9acfe7ab94206f4f5b;p=modules%2Fvisu.git 5x: fatal error on cancel Deformed Shape --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index c6b04bf7..7bb0b66f 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -740,8 +740,7 @@ void VisuGUI ::OnCreateDeformedShape() { - // CreatePrs3d(this); - Prs3d_i* aPrs = VisuGUI_DeformedShapeDlg::CreatePrs3d(this); + Prs3d_i* aPrs = CreatePrs3d(this); if (aPrs) emit presentationCreated(aPrs); } @@ -913,7 +912,7 @@ void VisuGUI::activateAppropriateViewer( Handle(SALOME_InteractiveObject) theIO VISU::VISUType aType = aBase->GetType(); - if ( VISU::Prs3d_i* aPrs3d = VISU::GetPrs3dFromBase(aBase) ) { + if ( VISU::GetPrs3dFromBase(aBase) ) { // activate SVTK Viewer getApp()->getViewManager( SVTK_Viewer::Type(), true ); return; @@ -941,7 +940,7 @@ void VisuGUI::activateAppropriateViewer( Handle(SALOME_InteractiveObject) theIO CORBA::Object_var aCORBAObject = VISU::ClientSObjectToObject(aChild); if(!CORBA::is_nil(aCORBAObject)){ PortableServer::ServantBase_var aServant = VISU::GetServant(aCORBAObject); - if( VISU::Curve_i* aCurve = dynamic_cast(aServant.in())) + if( dynamic_cast(aServant.in())) hasCurvesChildren = true; } }