Init band data so that zero is returned on failure

git-svn-id: svn://10.0.0.236/trunk@1436 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-05-12 01:30:57 +00:00
parent cf3c34edc3
commit aeca5d3fb6
2 changed files with 2 additions and 0 deletions

View File

@@ -181,6 +181,7 @@ PRInt32 SpaceManager::GetBandData(nscoord aYOffset,
// Find the first band that contains the y-offset or is below the y-offset
nsBandRect* band = mRectArray.mRects;
aBandData.count = 0;
for (PRInt32 i = 0; i < mRectArray.mCount; ) {
if (band->y > y) {
// The band is below the y-offset. The area between the y-offset and