From: kgv Date: Mon, 7 Aug 2017 09:26:58 +0000 (+0300) Subject: 0028975: Draw Harness - DBRep_DrawableShape::display() throws exception while display... X-Git-Tag: V7_2_0~73 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=e40d1acc28b0fd7c4c446830020083f3dee23556;p=occt.git 0028975: Draw Harness - DBRep_DrawableShape::display() throws exception while displaying shape without free edges in Debug mode --- diff --git a/src/DBRep/DBRep_DrawableShape.cxx b/src/DBRep/DBRep_DrawableShape.cxx index 6833036f8c..22df8ddb50 100644 --- a/src/DBRep/DBRep_DrawableShape.cxx +++ b/src/DBRep/DBRep_DrawableShape.cxx @@ -1074,7 +1074,7 @@ void DBRep_DrawableShape::display(const Handle(Poly_Triangulation)& T, } // allocate the arrays - TColStd_Array1OfInteger Free(1,2*nFree); + TColStd_Array1OfInteger Free (1, Max (1, 2 * nFree)); // array is replaced on map because it is impossible // to calculate number of internal edges in advance