Prevent crash when requesting icon with negative size

REVIEW: 118613
BUG: 335939
This commit is contained in:
Bhushan Shah 2014-06-08 22:39:54 +05:30
parent 5ab5d89fea
commit 86c1f46eaa

View File

@ -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;