]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL12838: Extrusion is impossible on a compound.
authorjfa <jfa@opencascade.com>
Tue, 4 Jul 2006 13:21:26 +0000 (13:21 +0000)
committerjfa <jfa@opencascade.com>
Tue, 4 Jul 2006 13:21:26 +0000 (13:21 +0000)
src/GenerationGUI/GenerationGUI_PrismDlg.cxx

index 96a84861bac62e4ed823f49075e7b9efb2ec57a7..54e4ad76b53696db865ebf64de5fcad5be8216d6 100644 (file)
@@ -261,7 +261,7 @@ void GenerationGUI_PrismDlg::SelectionIntoArgument()
 {
   erasePreview();
   myEditCurrentArgument->setText("");
-  
+
   if ( getConstructorId()==0 ) {
 
     if (IObjectCount() != 1) {
@@ -281,13 +281,6 @@ void GenerationGUI_PrismDlg::SelectionIntoArgument()
       return;
 
     if (myEditCurrentArgument == GroupPoints->LineEdit1) {
-      myOkBase = false;
-      TopoDS_Shape S;
-    
-      if (!GEOMBase::GetShape(aSelectedObject, S) ||
-          S.ShapeType() <= 2)
-        return;
-
       myBase = aSelectedObject;
       myOkBase = true;
     }
@@ -320,25 +313,25 @@ void GenerationGUI_PrismDlg::SelectionIntoArgument()
     Standard_Boolean testResult = Standard_False;
     GEOM::GEOM_Object_var aSelectedObject =
       GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
-  
-    if(!testResult || CORBA::is_nil( aSelectedObject ))
+
+    if (!testResult || CORBA::is_nil( aSelectedObject ))
       return;
-    
-    if(myEditCurrentArgument == GroupPoints2->LineEdit1) {
+
+    if (myEditCurrentArgument == GroupPoints2->LineEdit1) {
       myBase = aSelectedObject;
       myOkBase = true;
     }
-    else if(myEditCurrentArgument == GroupPoints2->LineEdit2) {
+    else if (myEditCurrentArgument == GroupPoints2->LineEdit2) {
       myPoint1 = aSelectedObject;
       myOkPnt1 = true;
     }
-    else if(myEditCurrentArgument == GroupPoints2->LineEdit3) {
+    else if (myEditCurrentArgument == GroupPoints2->LineEdit3) {
       myPoint2 = aSelectedObject;
       myOkPnt2 = true;
     }
-  
+
     myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
-  
+
     displayPreview();
   }
 }