This is an automated email from the git hooks/post-receive script. thansen pushed a commit to branch master in repository aseprite.
commit a76a1117f16178cd14d16e1c1451af9377a4e270 Author: David Capello <[email protected]> Date: Tue Apr 12 17:29:23 2016 -0300 Fix crash using RotSprite with width/height == 0 (fix #1056) --- src/doc/algorithm/rotsprite.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/doc/algorithm/rotsprite.cpp b/src/doc/algorithm/rotsprite.cpp index 152d0cb..06f693d 100644 --- a/src/doc/algorithm/rotsprite.cpp +++ b/src/doc/algorithm/rotsprite.cpp @@ -179,6 +179,9 @@ void rotsprite_image(Image* bmp, const Image* spr, const Image* mask, int rot_width = xmax - xmin; int rot_height = ymax - ymin; + if (rot_width == 0 || rot_height == 0) + return; + int scale = 8; base::UniquePtr<Image> bmp_copy(Image::create(bmp->pixelFormat(), rot_width*scale, rot_height*scale, buf[0])); base::UniquePtr<Image> tmp_copy(Image::create(spr->pixelFormat(), spr->width()*scale, spr->height()*scale, buf[1])); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

