Bug 174831 - fix indexes in spacer image detector.

r=paper, sr=bzbarsky, a=blizzard


git-svn-id: svn://10.0.0.236/trunk@132159 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tor%cs.brown.edu 2002-10-17 19:20:16 +00:00
parent 54725117eb
commit ce68bd25a0

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=leftindex; x<rightindex; x++) {
for (unsigned x=leftindex; x<=rightindex; x++) {
if (*(alpha++)!=0) {
mIsSpacer = PR_FALSE;
break;