Skip to content
Permalink
Browse files

[gui] improve no color logic by keeping RGB values

  • Loading branch information
nirvn authored and nyalldawson committed May 25, 2016
1 parent 4089cc5 commit 64823d10c57e7769aa27cbfa273a5f9496e528f5
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgscolorbuttonv2.cpp
@@ -165,7 +165,9 @@ void QgsColorButtonV2::setToNoColor()
{
if ( mAllowAlpha )
{
setColor( QColor( 0, 0, 0, 0 ) );
QColor noColor = QColor( mColor );
noColor.setAlpha( 0 );
setColor( noColor );
}
}

0 comments on commit 64823d1

Please sign in to comment.
You can’t perform that action at this time.