]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
5x: fatal error on cancel Deformed Shape
authordmv <dmv@opencascade.com>
Thu, 20 Nov 2008 12:35:42 +0000 (12:35 +0000)
committerdmv <dmv@opencascade.com>
Thu, 20 Nov 2008 12:35:42 +0000 (12:35 +0000)
src/VISUGUI/VisuGUI.cxx

index c6b04bf7e7ad4d1f2a7df60bd0007b96e97acfe8..7bb0b66f69e4ea7c2e0264c0d5170ef4871926eb 100644 (file)
@@ -740,8 +740,7 @@ void
 VisuGUI
 ::OnCreateDeformedShape()
 {
-  //  CreatePrs3d<VISU::DeformedShape_i,VisuGUI_DeformedShapeDlg,1>(this);
-  Prs3d_i* aPrs = VisuGUI_DeformedShapeDlg::CreatePrs3d(this);
+  Prs3d_i* aPrs = CreatePrs3d<VISU::DeformedShape_i,VisuGUI_DeformedShapeDlg,1>(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<VISU::Curve_i*>(aServant.in()))
+       if( dynamic_cast<VISU::Curve_i*>(aServant.in()))
          hasCurvesChildren = true;
       }
     }