]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix error in FreeEdges_i::GetBorders(). See bug 11894, description item 6.
authorjfa <jfa@opencascade.com>
Mon, 20 Mar 2006 09:03:14 +0000 (09:03 +0000)
committerjfa <jfa@opencascade.com>
Mon, 20 Mar 2006 09:03:14 +0000 (09:03 +0000)
src/SMESH_I/SMESH_Filter_i.cxx

index cc5876cdf9fe98e4769035b27ac80be303eb8680..755b188ce4a164058dab51253e8d427fad621299 100644 (file)
@@ -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++ )