Skip to content
Permalink
Browse files

fix support for null values in categories (fixes #11786)

  • Loading branch information
jef-n committed Jan 17, 2015
1 parent ce95c59 commit e3e42f02a297a981684c1c8dfe6c8add7457a7e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
@@ -178,7 +178,7 @@ void QgsCategorizedSymbolRendererV2::rebuildHash()
QgsSymbolV2* QgsCategorizedSymbolRendererV2::symbolForValue( QVariant value )
{
// TODO: special case for int, double
QHash<QString, QgsSymbolV2*>::iterator it = mSymbolHash.find( value.toString() );
QHash<QString, QgsSymbolV2*>::iterator it = mSymbolHash.find( value.isNull() ? "" : value.toString() );
if ( it == mSymbolHash.end() )
{
if ( mSymbolHash.size() == 0 )

0 comments on commit e3e42f0

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