From f163f612f9b50c3f42a9ae0e0da7e4e72654ece1 Mon Sep 17 00:00:00 2001 From: aba Date: Thu, 25 Oct 2012 14:07:11 +0400 Subject: [PATCH] 0022970: Incorrect array use in Graphic3d_StructureManager.cxx Corrected bounds of loops and initialisation error message. --- src/Graphic3d/Graphic3d_StructureManager.cxx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/Graphic3d/Graphic3d_StructureManager.cxx b/src/Graphic3d/Graphic3d_StructureManager.cxx index 8dfee2eac0..28e4091a87 100755 --- a/src/Graphic3d/Graphic3d_StructureManager.cxx +++ b/src/Graphic3d/Graphic3d_StructureManager.cxx @@ -93,14 +93,14 @@ Standard_Integer Limit = Graphic3d_StructureManager::Limit (); Initialisation = Standard_False; /* table to manage IDs of StructureManager */ - for (i=1; i<=Limit; i++) StructureManager_ArrayId[i] = 0; + for (i=0; i