mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix more warnings for QgsColorButtonV2 with invalid size
This commit is contained in:
parent
184122571a
commit
5b7d39a72a
@ -571,7 +571,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
|
||||
#endif
|
||||
}
|
||||
|
||||
if ( !currentIconSize.isValid() )
|
||||
if ( !currentIconSize.isValid() || currentIconSize.width() <= 0 || currentIconSize.height() <= 0 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user