mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 174259 - use appropriate indices in 1-bit alpha spacer image detector.
r=biese, sr=blizzard, a=dbaron
This commit is contained in:
parent
35ddc78531
commit
3af7c25730
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user