We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2f6b1 commit 3c45b23Copy full SHA for 3c45b23
src/core/symbology-ng/qgsvectorcolorrampv2.cpp
@@ -397,7 +397,7 @@ QColor QgsRandomColorsV2::color( double value ) const
397
}
398
399
//can't use precalculated hues, use a totally random hue
400
- int h = 1 + ( int )( 360.0 * qrand() / ( RAND_MAX + 1.0 ) );
+ int h = ( int )( 360.0 * qrand() / ( RAND_MAX + 1.0 ) );
401
int s = ( qrand() % ( DEFAULT_RANDOM_SAT_MAX - DEFAULT_RANDOM_SAT_MIN + 1 ) ) + DEFAULT_RANDOM_SAT_MIN;
402
int v = ( qrand() % ( maxVal - minVal + 1 ) ) + minVal;
403
return QColor::fromHsv( h, s, v );
0 commit comments