Skip to content

Commit

Permalink
[raster] prevent pseudocolor auto-classify following color customizat…
Browse files Browse the repository at this point in the history
…ion in tree
  • Loading branch information
nirvn committed Feb 8, 2018
1 parent 234540f commit e2c713e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp
Expand Up @@ -629,6 +629,7 @@ void QgsSingleBandPseudoColorRendererWidget::mColormapTreeWidget_itemDoubleClick
if ( newColor.isValid() )
{
item->setBackground( ColorColumn, QBrush( newColor ) );
loadMinMaxFromTree();
emit widgetChanged();
}
}
Expand Down Expand Up @@ -858,6 +859,8 @@ void QgsSingleBandPseudoColorRendererWidget::changeColor()
item->setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable );
item->setBackground( ColorColumn, QBrush( newColor ) );
}

loadMinMaxFromTree();
emit widgetChanged();
}
}
Expand All @@ -884,6 +887,8 @@ void QgsSingleBandPseudoColorRendererWidget::changeOpacity()
newColor.setAlpha( newOpacity );
item->setBackground( ColorColumn, QBrush( newColor ) );
}

loadMinMaxFromTree();
emit widgetChanged();
}
}
Expand Down

0 comments on commit e2c713e

Please sign in to comment.