[aseprite] 230/308: Fix condition in load_xml_image() function in AppBrushes
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:45:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 0da82a80d04b185723ee4a59ef237530842e42fe
Author: David Capello <davidcapello at gmail.com>
Date: Fri Feb 12 15:08:12 2016 -0300
Fix condition in load_xml_image() function in AppBrushes
---
src/app/app_brushes.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/app_brushes.cpp b/src/app/app_brushes.cpp
index 3dc13db..4603495 100644
--- a/src/app/app_brushes.cpp
+++ b/src/app/app_brushes.cpp
@@ -40,7 +40,7 @@ ImageRef load_xml_image(const TiXmlElement* imageElem)
int w, h;
if (!imageElem->QueryIntAttribute("width", &w) == TIXML_SUCCESS ||
!imageElem->QueryIntAttribute("height", &h) == TIXML_SUCCESS ||
- w < 0 || w > 9999 &&
+ 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
More information about the Pkg-games-commits
mailing list