[QGIS Commit] r12187 - trunk/qgis/src/core/symbology-ng
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Thu Nov 19 06:22:21 EST 2009
Author: wonder
Date: 2009-11-19 06:22:20 -0500 (Thu, 19 Nov 2009)
New Revision: 12187
Modified:
trunk/qgis/src/core/symbology-ng/qgsvectorcolorrampv2.cpp
Log:
Fixed #2112.
Modified: trunk/qgis/src/core/symbology-ng/qgsvectorcolorrampv2.cpp
===================================================================
--- trunk/qgis/src/core/symbology-ng/qgsvectorcolorrampv2.cpp 2009-11-19 11:19:32 UTC (rev 12186)
+++ trunk/qgis/src/core/symbology-ng/qgsvectorcolorrampv2.cpp 2009-11-19 11:22:20 UTC (rev 12187)
@@ -160,7 +160,7 @@
return QColor( 255, 0, 0 ); // red color as a warning :)
int paletteEntry = ( int )( value * mPalette.count() );
- if ( paletteEntry > mPalette.count() )
+ if ( paletteEntry >= mPalette.count() )
paletteEntry = mPalette.count() - 1;
return mPalette.at( paletteEntry );
}
More information about the QGIS-commit
mailing list