diff --git a/src/app/app_brushes.cpp b/src/app/app_brushes.cpp index 3dc13dba0..460349577 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;