mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 570451 - Avoid adding unneeded lines to image; r=joe sr=vlad
This commit is contained in:
parent
ec7bd00b0a
commit
105a409ca0
@ -776,6 +776,9 @@ row_callback(png_structp png_ptr, png_bytep new_row,
|
||||
if (decoder->mFrameIsHidden)
|
||||
return;
|
||||
|
||||
if (row_num >= decoder->mFrameRect.height)
|
||||
return;
|
||||
|
||||
if (new_row) {
|
||||
PRInt32 width = decoder->mFrameRect.width;
|
||||
PRUint32 iwidth = decoder->mFrameRect.width;
|
||||
|
Loading…
Reference in New Issue
Block a user