]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed crash on the second item creation
authormpv <mikhail.ponikarov@opencascade.com>
Mon, 12 May 2014 04:36:18 +0000 (08:36 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Mon, 12 May 2014 04:36:18 +0000 (08:36 +0400)
src/Model/Model_Document.cpp

index 790bab22f57b39a7f07e6ecd5c92c2641d90926d..0255a4f93bcd62fa53c20c42821e60d286bbb9c2 100644 (file)
@@ -246,7 +246,7 @@ void Model_Document::addFeature(const boost::shared_ptr<ModelAPI_Feature> theFea
   } else { // extend array by one more element
     Handle(TDataStd_HLabelArray1) aNewArray = 
       new TDataStd_HLabelArray1(aRefs->Lower(), aRefs->Upper() + 1);
-    for(int a = aRefs->Lower(); a < aRefs->Upper(); a++) {
+    for(int a = aRefs->Lower(); a <= aRefs->Upper(); a++) {
       aNewArray->SetValue(a, aRefs->Value(a));
     }
     aNewArray->SetValue(aRefs->Upper() + 1, anObjLab);