Skip to content
Browse files

remove unused ramp

  • Loading branch information
jef-n committed Sep 26, 2014
1 parent 67e0778 commit 27abd208c10872bbb8d63ab74ba71f96512ae2a9
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/gui/symbology-ng/qgscategorizedsymbolrendererv2widget.cpp
@@ -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];

1 comment on commit 27abd20


This comment has been minimized.

Copy link

@nyalldawson nyalldawson commented on 27abd20 Sep 26, 2014

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

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