Salome HOME
Preparation of intermediate revision
[modules/geom.git] / src / GenerationGUI / GenerationGUI_PipeDlg.cxx
index e560176dc627c1b0a3387fa3ab47027fa2e5ca2c..c6248a1e86ad16317f000fea4d61722ab2bb48d2 100644 (file)
@@ -135,6 +135,7 @@ void GenerationGUI_PipeDlg::Init()
   connect(GroupPoints->CheckButton1,   SIGNAL(toggled(bool)), this, SLOT(SelectionTypeButtonClicked()));
 
   initName(tr("GEOM_PIPE"));
+  resize(100,100);
 
   GroupPoints->TextLabel3->hide();
   GroupPoints->PushButton3->hide();
@@ -474,13 +475,14 @@ bool GenerationGUI_PipeDlg::execute (ObjectList& objects)
 {
   GEOM::GEOM_Object_var anObj;
 
+  GEOM::GEOM_I3DPrimOperations_var anOper = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation());
+
   switch ( getConstructorId() ) {
   case 0 :
-    anObj = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation())->MakePipe(myBase, myPath);
+    anObj = anOper->MakePipe(myBase, myPath);
     break;
   case 1 :
-    anObj = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation())->
-      MakePipeBiNormalAlongVector(myBase, myPath, myVec);
+    anObj = anOper->MakePipeBiNormalAlongVector(myBase, myPath, myVec);
     break;
   }