Skip to content
Permalink
Browse files

Fix more warnings for QgsColorButtonV2 with invalid size

  • Loading branch information
nyalldawson committed Oct 1, 2014
1 parent 1841225 commit 5b7d39a72a870cd2a8abf966ea243a6f0058d748
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgscolorbuttonv2.cpp
@@ -571,7 +571,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
#endif
}

if ( !currentIconSize.isValid() )
if ( !currentIconSize.isValid() || currentIconSize.width() <= 0 || currentIconSize.height() <= 0 )
{
return;
}

0 comments on commit 5b7d39a

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