Skip to content


Fix loss of hue information with slider widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 16, 2014
1 parent 2dba5d7 commit e5f078e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgscolorwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ void QgsColorWidget::setComponentValue( const int value )
mCurrentColor.getRgb( &r, &g, &b, &a );
int h, s, v;
mCurrentColor.getHsv( &h, &s, &v );
//overwrite hue with explicit hue if required
h = hue();

switch ( mComponent )
Expand Down

0 comments on commit e5f078e

Please sign in to comment.