Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix more warnings for QgsColorButtonV2 with invalid size
  • Loading branch information
nyalldawson committed Oct 1, 2014
1 parent 1841225 commit 5b7d39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgscolorbuttonv2.cpp
Expand Up @@ -571,7 +571,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
#endif
}

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

0 comments on commit 5b7d39a

Please sign in to comment.