[gui] improve no color logic by keeping RGB values

This commit is contained in:
nirvn 2016-05-25 10:28:18 +07:00 committed by Nyall Dawson
parent 4089cc5226
commit 64823d10c5

View File

@ -165,7 +165,9 @@ void QgsColorButtonV2::setToNoColor()
{
if ( mAllowAlpha )
{
setColor( QColor( 0, 0, 0, 0 ) );
QColor noColor = QColor( mColor );
noColor.setAlpha( 0 );
setColor( noColor );
}
}