]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
DCQ : Debug DCQ_1_3_0
authordcq <dcq@opencascade.com>
Tue, 16 Mar 2004 15:22:03 +0000 (15:22 +0000)
committerdcq <dcq@opencascade.com>
Tue, 16 Mar 2004 15:22:03 +0000 (15:22 +0000)
src/TransformationGUI/TransformationGUI_PositionDlg.cxx

index 1c46df3dfaad6da682989ff362aca6b0acab2028..fa6f48c7168fc1c421e83d83a288e0be52558fd9 100644 (file)
@@ -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);