From ff8af1849706a28c7408179bd6084ecc93eff946 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 8 Dec 2008 22:22:18 +0000 Subject: [PATCH] a size like QSize(10,0) is valid but will end up in a null pixmap, and this thing did confuse the cache a lot CCBUG: 177172 does this patch fixes it? will keep open a day to be really sure :) svn path=/trunk/KDE/kdelibs/; revision=894591 --- svg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }