Skip to content

Commit

Permalink
[gui] improve no color logic by keeping RGB values
Browse files Browse the repository at this point in the history
(cherry-picked from 64823d1)
  • Loading branch information
nyalldawson committed Jun 30, 2016
1 parent 71308c7 commit cb135e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgscolorbuttonv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,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 cb135e9

Please sign in to comment.