This is an automated email from the git hooks/post-receive script. thansen pushed a commit to branch master in repository aseprite.
commit 237a46588c59bb76d1e816445510a3b72c193723 Author: David Capello <[email protected]> Date: Thu Feb 18 10:58:22 2016 -0300 Fix if-condition inside load_xml_image() --- src/app/app_brushes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/app_brushes.cpp b/src/app/app_brushes.cpp index 4603495..4b6c76a 100644 --- a/src/app/app_brushes.cpp +++ b/src/app/app_brushes.cpp @@ -38,8 +38,8 @@ ImageRef load_xml_image(const TiXmlElement* imageElem) { ImageRef image; int w, h; - if (!imageElem->QueryIntAttribute("width", &w) == TIXML_SUCCESS || - !imageElem->QueryIntAttribute("height", &h) == TIXML_SUCCESS || + if (imageElem->QueryIntAttribute("width", &w) != TIXML_SUCCESS || + imageElem->QueryIntAttribute("height", &h) != TIXML_SUCCESS || w < 0 || w > 9999 || h < 0 || h > 9999) return image; -- 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

