diff --git a/svg.cpp b/svg.cpp index 6ace4b1ea..2f2c7d39b 100644 --- a/svg.cpp +++ b/svg.cpp @@ -155,7 +155,7 @@ class SvgPrivate size = elementRect(elementId).size().toSize(); } - if (!size.isValid()) { + if (size.width() <= 0 || size.height() <= 0) { return QPixmap(); }