Fix condition in load_xml_image() function in AppBrushes

This commit is contained in:
David Capello 2016-02-12 15:08:12 -03:00
parent e46cebe5a0
commit 0da82a80d0

View File

@ -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;