Skip to content
Permalink
Browse files
Don't set both a default ramp and show the random option
  • Loading branch information
nyalldawson committed Apr 3, 2017
1 parent e2a82a0 commit 3405298206a95d3eb494b462ccad97148aa895bc
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/gui/raster/qgspalettedrendererwidget.cpp
@@ -70,8 +70,6 @@ QgsPalettedRendererWidget::QgsPalettedRendererWidget( QgsRasterLayer *layer, con

btnColorRamp->setShowRandomColorRamp( true );

std::unique_ptr< QgsColorRamp > ramp( new QgsRandomColorRamp() );
btnColorRamp->setDefaultColorRamp( ramp.get() );
connect( btnColorRamp, &QgsColorRampButton::colorRampChanged, this, &QgsPalettedRendererWidget::applyColorRamp );

if ( mRasterLayer )

0 comments on commit 3405298

Please sign in to comment.