From e40d1acc28b0fd7c4c446830020083f3dee23556 Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 7 Aug 2017 12:26:58 +0300 Subject: [PATCH] 0028975: Draw Harness - DBRep_DrawableShape::display() throws exception while displaying shape without free edges in Debug mode --- src/DBRep/DBRep_DrawableShape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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