Skip to content
Permalink
Browse files

[symbology] categorized renderer's default ramp should be random

  • Loading branch information
nirvn committed Dec 8, 2016
1 parent 37edb69 commit 01f2c441ad90a59060398d078548f887e989b2f5
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/gui/symbology-ng/qgscategorizedsymbolrendererwidget.cpp
@@ -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( "" ) );
@@ -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() );

0 comments on commit 01f2c44

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