Prevent crash when requesting icon with negative size
REVIEW: 118613 BUG: 335939
This commit is contained in:
parent
5ab5d89fea
commit
86c1f46eaa
@ -292,7 +292,7 @@ void IconItem::loadPixmap()
|
||||
//final pixmap to paint
|
||||
QPixmap result;
|
||||
if (size <= 0) {
|
||||
//m_iconPixmaps.clear();
|
||||
m_pixmapIcon = QPixmap();
|
||||
m_animation->stop();
|
||||
update();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user