From: enk Date: Thu, 23 Mar 2006 09:22:18 +0000 (+0000) Subject: Fix for Bug IPAL11982: X-Git-Tag: T3_2_0b1_pre1~92 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=17527496780f5d362df441267fd305d79170d597;p=modules%2Fsmesh.git Fix for Bug IPAL11982: TC: impossible to create a polygon --- diff --git a/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx b/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx index df2bb4df1..09b12806c 100644 --- a/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx @@ -446,8 +446,14 @@ void SMESHGUI_AddMeshElementDlg::ClickOnApply() switch (myElementType) { case SMDSAbs_Edge: aMeshEditor->AddEdge(anArrayOfIdeces.inout()); break; - case SMDSAbs_Face: - aMeshEditor->AddFace(anArrayOfIdeces.inout()); break; + case SMDSAbs_Face:{ + if(myIsPoly) + aMeshEditor->AddPolygonalFace(anArrayOfIdeces.inout()); + else + aMeshEditor->AddFace(anArrayOfIdeces.inout()); + break; + + } case SMDSAbs_Volume: aMeshEditor->AddVolume(anArrayOfIdeces.inout()); break; default:;