mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 12:39:57 +00:00
Fix condition in load_xml_image() function in AppBrushes
This commit is contained in:
parent
e46cebe5a0
commit
0da82a80d0
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user