зеркало из https://github.com/mozilla/gecko-dev.git
Bug 174831 - fix indexes in spacer image detector.
r=paper, sr=bzbarsky, a=blizzard
This commit is contained in:
Родитель
0772917415
Коммит
9b88c76b6c
|
@ -434,7 +434,7 @@ void nsImageGTK::UpdateCachedImage()
|
||||||
if (mIsSpacer && (leftindex <= rightindex)) {
|
if (mIsSpacer && (leftindex <= rightindex)) {
|
||||||
for (unsigned y=rect->y; (y<bottom) && mIsSpacer; y++) {
|
for (unsigned y=rect->y; (y<bottom) && mIsSpacer; y++) {
|
||||||
unsigned char *alpha = mAlphaBits + mAlphaRowBytes*y + leftindex;
|
unsigned char *alpha = mAlphaBits + mAlphaRowBytes*y + leftindex;
|
||||||
for (unsigned x=leftindex; x<rightindex; x++) {
|
for (unsigned x=leftindex; x<=rightindex; x++) {
|
||||||
if (*(alpha++)!=0) {
|
if (*(alpha++)!=0) {
|
||||||
mIsSpacer = PR_FALSE;
|
mIsSpacer = PR_FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче