From b4aed9ff1cbb0dc84708756f947787f323f86f1d Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 15 Jul 2008 06:20:48 +0000 Subject: [PATCH] Bug IPAL20034 Error after Find geometry by mesh element selection,if element is selected,but mesh isn't created.Regress. --- src/SMESHGUI/SMESHGUI_ShapeByMeshDlg.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) { -- 2.39.2