From e9dd8790ff738d5266155b9acfe7ab94206f4f5b Mon Sep 17 00:00:00 2001 From: dmv Date: Thu, 20 Nov 2008 12:35:42 +0000 Subject: [PATCH] 5x: fatal error on cancel Deformed Shape --- src/VISUGUI/VisuGUI.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } } -- 2.39.2