Skip to content

Commit 2671d67

Browse files
committedSep 20, 2014
Don't try to draw icon for hidden color buttons
1 parent fb2279f commit 2671d67

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/gui/qgscolorbuttonv2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,11 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
571571
#endif
572572
}
573573

574+
if ( !currentIconSize.isValid() )
575+
{
576+
return;
577+
}
578+
574579
//create an icon pixmap
575580
QPixmap pixmap( currentIconSize );
576581
pixmap.fill( Qt::transparent );

0 commit comments

Comments
 (0)
Please sign in to comment.