mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Fix if-condition inside load_xml_image()
This commit is contained in:
parent
64deb6ed87
commit
237a46588c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user