]> OCCT Git - occt.git/commitdiff
0028975: Draw Harness - DBRep_DrawableShape::display() throws exception while display...
authorkgv <kgv@opencascade.com>
Mon, 7 Aug 2017 09:26:58 +0000 (12:26 +0300)
committerbugmaster <bugmaster@opencascade.com>
Tue, 8 Aug 2017 15:07:37 +0000 (18:07 +0300)
src/DBRep/DBRep_DrawableShape.cxx

index 6833036f8c6b9e05397a553f0a17f9409397b62c..22df8ddb50ece50516817a619e384600f916fc62 100644 (file)
@@ -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