Salome HOME
Preparation of intermediate revision
[modules/geom.git] / src / GenerationGUI / GenerationGUI_PipeDlg.cxx
index 78d7abfcef1781a149bfb74e4e29f2fd3dc65519..c6248a1e86ad16317f000fea4d61722ab2bb48d2 100644 (file)
@@ -475,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;
   }