1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

OCC22301 TColStd_PackedMapOfInteger issue with extent value

This commit is contained in:
JGV 2011-05-19 10:46:55 +00:00 committed by bugmaster
parent 20ee680faf
commit 40f6333983

View File

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