Skip to content
Permalink
Browse files

[gui] improve no color logic by keeping RGB values

(cherry-picked from 64823d1)
  • Loading branch information
nyalldawson committed Jun 30, 2016
1 parent 71308c7 commit cb135e940c4dff1596cb0bf9f813995adf7c1619
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgscolorbuttonv2.cpp
@@ -159,7 +159,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 cb135e9

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