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
|
//final pixmap to paint
|
||||||
QPixmap result;
|
QPixmap result;
|
||||||
if (size <= 0) {
|
if (size <= 0) {
|
||||||
//m_iconPixmaps.clear();
|
m_pixmapIcon = QPixmap();
|
||||||
m_animation->stop();
|
m_animation->stop();
|
||||||
update();
|
update();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user