Skip to content

Commit e5f078e

Browse files
committedSep 16, 2014
Fix loss of hue information with slider widgets
1 parent 2dba5d7 commit e5f078e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/gui/qgscolorwidgets.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ void QgsColorWidget::setComponentValue( const int value )
250250
mCurrentColor.getRgb( &r, &g, &b, &a );
251251
int h, s, v;
252252
mCurrentColor.getHsv( &h, &s, &v );
253+
//overwrite hue with explicit hue if required
254+
h = hue();
253255

254256
switch ( mComponent )
255257
{

0 commit comments

Comments
 (0)
Please sign in to comment.