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:
parent
54725117eb
commit
ce68bd25a0
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user