From: dcq Date: Tue, 16 Mar 2004 15:22:03 +0000 (+0000) Subject: DCQ : Debug X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FDCQ_1_3_0;p=modules%2Fgeom.git DCQ : Debug --- diff --git a/src/TransformationGUI/TransformationGUI_PositionDlg.cxx b/src/TransformationGUI/TransformationGUI_PositionDlg.cxx index 1c46df3df..fa6f48c71 100644 --- a/src/TransformationGUI/TransformationGUI_PositionDlg.cxx +++ b/src/TransformationGUI/TransformationGUI_PositionDlg.cxx @@ -270,6 +270,15 @@ void TransformationGUI_PositionDlg::SelectionIntoArgument() if(!myGeomBase->GetTopoFromSelection(mySelection, S)) return; + if(myConstructorId == 1) { + if(S.ShapeType() > TopAbs_EDGE) + return; + } + else if(myConstructorId == 2) { + if(S.ShapeType() > TopAbs_FACE) + return; + } + if(myEditCurrentArgument == Group1->LineEdit1) { myShape1 = S; myGeomShape1 = myGeomBase->ConvertIOinGEOMShape(IO, testResult);