Backport of commit a842523b46176b8cde845e26d06bca7f76166df0 in kde:kde-runtime
This commit is contained in:
parent
89286e1b1c
commit
7f8cbc4af2
@ -277,7 +277,10 @@ void IconItem::loadPixmap()
|
||||
|
||||
//final pixmap to paint
|
||||
QPixmap result;
|
||||
if (m_svgIcon) {
|
||||
if (size<=0) {
|
||||
m_iconPixmaps.clear();
|
||||
return;
|
||||
} else if (m_svgIcon) {
|
||||
m_svgIcon->resize(size, size);
|
||||
result = m_svgIcon->pixmap(m_source.toString());
|
||||
} else if (!m_source.isNull()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user