From: kga Date: Wed, 30 Oct 2013 13:02:47 +0000 (+0000) Subject: Fix compilation error X-Git-Tag: BR_hydro_v_0_3_1~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fade4fd38a680717f2d4993c5d7063d04287e60a;p=modules%2Fgeom.git Fix compilation error --- diff --git a/src/GenerationGUI/GenerationGUI_PipeDlg.cxx b/src/GenerationGUI/GenerationGUI_PipeDlg.cxx index 76c23f9e0..43854d469 100644 --- a/src/GenerationGUI/GenerationGUI_PipeDlg.cxx +++ b/src/GenerationGUI/GenerationGUI_PipeDlg.cxx @@ -512,20 +512,24 @@ bool GenerationGUI_PipeDlg::execute (ObjectList& objects) } break; case 2: - GEOM::ListOfGO_var myBaseGO = new GEOM::ListOfGO(); - GEOM::ListOfGO_var myLocationsGO = new GEOM::ListOfGO(); - myBaseGO->length( myBaseObjects.count() ); - myLocationsGO->length( myLocations.count() ); - for (int i = 0; i < myBaseObjects.count(); i++) { - myBaseGO[i] = myBaseObjects[i].copy(); - } - for (int i = 0; i < myLocations.count(); i++) { - myLocationsGO[i] = myLocations[i].copy(); + { + GEOM::ListOfGO_var myBaseGO = new GEOM::ListOfGO(); + GEOM::ListOfGO_var myLocationsGO = new GEOM::ListOfGO(); + myBaseGO->length( myBaseObjects.count() ); + myLocationsGO->length( myLocations.count() ); + for (int i = 0; i < myBaseObjects.count(); i++) { + myBaseGO[i] = myBaseObjects[i].copy(); + } + for (int i = 0; i < myLocations.count(); i++) { + myLocationsGO[i] = myLocations[i].copy(); + } + + anObj = anOper->MakePipeWithDifferentSections(myBaseGO.in(), myLocationsGO.in(), myPath.get(), + GroupMakePoints->CheckBox1->isChecked(), + GroupMakePoints->CheckBox2->isChecked()); + if (!anObj->_is_nil()) + objects.push_back(anObj._retn()); } - - anObj = anOper->MakePipeWithDifferentSections(myBaseGO.in(), myLocationsGO.in(), myPath.get(), GroupMakePoints->CheckBox1->isChecked(), GroupMakePoints->CheckBox2->isChecked()); - if (!anObj->_is_nil()) - objects.push_back(anObj._retn()); break; default: break;