OCC22301 TColStd_PackedMapOfInteger issue with extent value
authorJGV <>
Thu, 19 May 2011 10:46:55 +0000 (10:46 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:28:45 +0000 (19:28 +0400)
src/TColStd/TColStd_PackedMapOfInteger.cxx

index 738064d..acc1056 100755 (executable)
@@ -772,8 +772,10 @@ Standard_Boolean TColStd_PackedMapOfInteger::Intersect
             // Store the block - result of operation
             if (aNewData == 0)
               p2 = 0L;  // no match - the block has to be removed
-            else if ( aNewData != p1->Data() ) {
-              p1->ChangeData() = aNewData;
+            else
+            {
+              if ( aNewData != p1->Data() )
+                p1->ChangeData() = aNewData;
               aNewExtent += TColStd_Population (p1->ChangeMask(), aNewData);
             }
             break;