Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[gui] improve no color logic by keeping RGB values
  • Loading branch information
nirvn authored and nyalldawson committed May 25, 2016
1 parent 4089cc5 commit 64823d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgscolorbuttonv2.cpp
Expand Up @@ -165,7 +165,9 @@ void QgsColorButtonV2::setToNoColor()
{
if ( mAllowAlpha )
{
setColor( QColor( 0, 0, 0, 0 ) );
QColor noColor = QColor( mColor );
noColor.setAlpha( 0 );
setColor( noColor );
}
}

Expand Down

0 comments on commit 64823d1

Please sign in to comment.