Backport of commit a842523b46176b8cde845e26d06bca7f76166df0 in kde:kde-runtime

This commit is contained in:
Aleix Pol 2013-02-07 12:11:51 +01:00
parent 89286e1b1c
commit 7f8cbc4af2

View File

@ -277,7 +277,10 @@ void IconItem::loadPixmap()
//final pixmap to paint //final pixmap to paint
QPixmap result; QPixmap result;
if (m_svgIcon) { if (size<=0) {
m_iconPixmaps.clear();
return;
} else if (m_svgIcon) {
m_svgIcon->resize(size, size); m_svgIcon->resize(size, size);
result = m_svgIcon->pixmap(m_source.toString()); result = m_svgIcon->pixmap(m_source.toString());
} else if (!m_source.isNull()) { } else if (!m_source.isNull()) {