X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTransformationGUI%2FTransformationGUI_MultiRotationDlg.cxx;h=441abea0a72eb3c804abfbd11fc0d3c133826f97;hb=1968ea1dc4875785b89f7b8c8006554b0d25d2c0;hp=7279d5b9ebbabd90d3ded9130b1bb086ba55a152;hpb=97f108384c37fece2f3cbd795d97eafde7eecea7;p=modules%2Fgeom.git diff --git a/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx b/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx index 7279d5b9e..441abea0a 100644 --- a/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx +++ b/src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx @@ -176,7 +176,7 @@ void TransformationGUI_MultiRotationDlg::ConstructorsClicked(int constructorId) myStep = 50.0; myNbTimes1 = myNbTimes2 = 2; - globalSelection(); + globalSelection( GEOM_ALLSHAPES ); switch (constructorId) { @@ -275,7 +275,7 @@ void TransformationGUI_MultiRotationDlg::SelectionIntoArgument() Standard_Boolean testResult = Standard_False;; GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult ); - if (!testResult || CORBA::is_nil( aSelectedObject )) + if ( !testResult || CORBA::is_nil( aSelectedObject ) || !GEOMBase::IsShape( aSelectedObject ) ) return; @@ -300,7 +300,7 @@ void TransformationGUI_MultiRotationDlg::SetEditCurrentArgument() if(send == GroupPoints->PushButton1) { myEditCurrentArgument = GroupPoints->LineEdit1; - globalSelection(); + globalSelection( GEOM_ALLSHAPES ); } else if(send == GroupPoints->PushButton2) { myEditCurrentArgument = GroupPoints->LineEdit2; @@ -308,7 +308,7 @@ void TransformationGUI_MultiRotationDlg::SetEditCurrentArgument() } else if(send == GroupDimensions->PushButton1) { myEditCurrentArgument = GroupDimensions->LineEdit1; - globalSelection(); + globalSelection( GEOM_ALLSHAPES ); } else if(send == GroupDimensions->PushButton2) { myEditCurrentArgument = GroupDimensions->LineEdit2;