Skip to content

Commit

Permalink
[symbology] categorized renderer's default ramp should be random
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 8, 2016
1 parent 37edb69 commit 01f2c44
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/gui/symbology-ng/qgscategorizedsymbolrendererwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ QgsCategorizedSymbolRendererWidget::QgsCategorizedSymbolRendererWidget( QgsVecto

// initiate color ramp button to random
btnColorRamp->setShowRandomColorRamp( true );
btnColorRamp->setRandomColorRamp();

// set project default color ramp
QString defaultColorRamp = QgsProject::instance()->readEntry( QStringLiteral( "DefaultStyles" ), QStringLiteral( "/ColorRamp" ), QLatin1String( "" ) );
Expand All @@ -423,9 +422,7 @@ QgsCategorizedSymbolRendererWidget::QgsCategorizedSymbolRendererWidget( QgsVecto
}
else
{
QgsColorRamp* ramp = new QgsGradientColorRamp( QColor( 255, 255, 255 ), QColor( 255, 0, 0 ) );
btnColorRamp->setColorRamp( ramp );
delete ramp;
btnColorRamp->setRandomColorRamp();
}

mCategorizedSymbol = QgsSymbol::defaultSymbol( mLayer->geometryType() );
Expand Down

0 comments on commit 01f2c44

Please sign in to comment.