Fix more warnings for QgsColorButtonV2 with invalid size

This commit is contained in:
Nyall Dawson 2014-10-01 20:31:37 +10:00
parent 184122571a
commit 5b7d39a72a

View File

@ -571,7 +571,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
#endif
}
if ( !currentIconSize.isValid() )
if ( !currentIconSize.isValid() || currentIconSize.width() <= 0 || currentIconSize.height() <= 0 )
{
return;
}