Skip to content
Permalink
Browse files

Don't try to draw icon for hidden color buttons

  • Loading branch information
nyalldawson committed Sep 20, 2014
1 parent fb2279f commit 2671d6796e8f2e7cc8719e059b45c24fe442c552
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgscolorbuttonv2.cpp
@@ -571,6 +571,11 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
#endif
}

if ( !currentIconSize.isValid() )
{
return;
}

//create an icon pixmap
QPixmap pixmap( currentIconSize );
pixmap.fill( Qt::transparent );

0 comments on commit 2671d67

Please sign in to comment.
You can’t perform that action at this time.