Bug 174259 - use appropriate indices in 1-bit alpha spacer image detector.

r=biese, sr=blizzard, a=dbaron
This commit is contained in:
tor%cs.brown.edu 2002-10-15 06:37:54 +00:00
parent 35ddc78531
commit 3af7c25730

View File

@ -434,7 +434,7 @@ void nsImageGTK::UpdateCachedImage()
if (mIsSpacer && (leftindex <= rightindex)) {
for (unsigned y=rect->y; (y<bottom) && mIsSpacer; y++) {
unsigned char *alpha = mAlphaBits + mAlphaRowBytes*y + leftindex;
for (unsigned x=left; x<right; x++) {
for (unsigned x=leftindex; x<rightindex; x++) {
if (*(alpha++)!=0) {
mIsSpacer = PR_FALSE;
break;