Skip to content

Commit 64823d1

Browse files
nirvnnyalldawson
authored andcommittedMay 25, 2016
[gui] improve no color logic by keeping RGB values
1 parent 4089cc5 commit 64823d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/gui/qgscolorbuttonv2.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ void QgsColorButtonV2::setToNoColor()
165165
{
166166
if ( mAllowAlpha )
167167
{
168-
setColor( QColor( 0, 0, 0, 0 ) );
168+
QColor noColor = QColor( mColor );
169+
noColor.setAlpha( 0 );
170+
setColor( noColor );
169171
}
170172
}
171173

0 commit comments

Comments
 (0)
Please sign in to comment.