From: dmv Date: Tue, 15 Jul 2008 06:20:48 +0000 (+0000) Subject: Bug IPAL20034 Error after Find geometry by mesh element selection,if element is selec... X-Git-Tag: V4_1_4a1~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b4aed9ff1cbb0dc84708756f947787f323f86f1d;p=modules%2Fsmesh.git Bug IPAL20034 Error after Find geometry by mesh element selection,if element is selected,but mesh isn't created.Regress. --- diff --git a/src/SMESHGUI/SMESHGUI_ShapeByMeshDlg.cxx b/src/SMESHGUI/SMESHGUI_ShapeByMeshDlg.cxx index 51881af42..5a506dab4 100644 --- a/src/SMESHGUI/SMESHGUI_ShapeByMeshDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ShapeByMeshDlg.cxx @@ -288,8 +288,9 @@ void SMESHGUI_ShapeByMeshOp::commitOperation() if (aListId.count() == 1) { int elemID = (aListId.first()).toInt(); - myGeomObj = SMESHGUI::GetSMESHGen()->GetGeometryByMeshElement - ( myMesh.in(), elemID, myDlg->myGeomName->text().latin1()); + myGeomObj = GEOM::GEOM_Object::_duplicate( + SMESHGUI::GetSMESHGen()->GetGeometryByMeshElement + ( myMesh.in(), elemID, myDlg->myGeomName->text().latin1()) ); } else { @@ -361,7 +362,7 @@ void SMESHGUI_ShapeByMeshOp::commitOperation() QString aNewGeomGroupName ( myDlg->myGeomName->text().latin1() ); SALOMEDS::SObject_var aNewGroupSO = - geomGen->AddInStudy(SMESHGUI::GetSMESHGen()->GetCurrentStudy(), myGeomObj, aNewGeomGroupName, aMeshShape); + geomGen->AddInStudy(SMESHGUI::GetSMESHGen()->GetCurrentStudy(), myGeomObj, aNewGeomGroupName, aMeshShape); } } catch (const SALOME::SALOME_Exception& S_ex) {