From 0edc865f97ac7768429b9b43450b6c3fd8349931 Mon Sep 17 00:00:00 2001 From: dcq Date: Tue, 16 Mar 2004 15:22:03 +0000 Subject: [PATCH] DCQ : Debug --- src/TransformationGUI/TransformationGUI_PositionDlg.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.39.2