From: jfa Date: Mon, 20 Mar 2006 09:03:14 +0000 (+0000) Subject: Fix error in FreeEdges_i::GetBorders(). See bug 11894, description item 6. X-Git-Tag: OCC_3_2_0a2_TC~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55c24afc42ede0646b38cb1002bea13e1dfc0aad;p=modules%2Fsmesh.git Fix error in FreeEdges_i::GetBorders(). See bug 11894, description item 6. --- diff --git a/src/SMESH_I/SMESH_Filter_i.cxx b/src/SMESH_I/SMESH_Filter_i.cxx index cc5876cdf..755b188ce 100644 --- a/src/SMESH_I/SMESH_Filter_i.cxx +++ b/src/SMESH_I/SMESH_Filter_i.cxx @@ -1086,7 +1086,8 @@ SMESH::FreeEdges::Borders* FreeEdges_i::GetBorders() long i = 0, iEnd = aBorders.size(); - SMESH::FreeEdges::Borders_var aResult = new SMESH::FreeEdges::Borders(iEnd); + SMESH::FreeEdges::Borders_var aResult = new SMESH::FreeEdges::Borders; + aResult->length(iEnd); SMESH::Controls::FreeEdges::TBorders::const_iterator anIter; for ( anIter = aBorders.begin() ; anIter != aBorders.end(); anIter++, i++ )