Skip to content

Commit

Permalink
remove unused ramp
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 26, 2014
1 parent 67e0778 commit 27abd20
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/gui/symbology-ng/qgscategorizedsymbolrendererv2widget.cpp
Expand Up @@ -603,17 +603,6 @@ static void _createCategories( QgsCategoryList& cats, QList<QVariant>& values, Q

bool hasNull = false;

QgsRandomColorsV2* randomRamp = dynamic_cast<QgsRandomColorsV2*>( ramp );
if ( randomRamp )
{
//ramp is a random colors ramp, so inform it of the total number of required colors
//this allows the ramp to pregenerate a set of visually distinctive colors

//assume we need an extra color for nulls
int totalColors = num + 1;
randomRamp->setTotalColorCount( totalColors );
}

for ( int i = 0; i < num; i++ )
{
QVariant value = values[i];
Expand Down

1 comment on commit 27abd20

@nyalldawson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jef-n why was this removed? It is required for random color ramps... See comments in PR #1581

Please sign in to comment.