Skip to content
Permalink
Browse files

Fix loss of hue information with slider widgets

  • Loading branch information
nyalldawson committed Sep 16, 2014
1 parent 2dba5d7 commit e5f078ed8f2060a3ca8b0023dd40e84030eae737
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgscolorwidgets.cpp
@@ -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 )
{

0 comments on commit e5f078e

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