Bug IPAL20034 Error after Find geometry by mesh element selection,if element is selected,but mesh isn't created.Regress.

This commit is contained in:
dmv 2008-07-15 06:20:48 +00:00
parent cba44c5492
commit b4aed9ff1c

View File

@ -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
{