Skip to content
Permalink
Browse files

fix #7630 - categorized renderer gui produces an empty string categor…

…y as catch all case, so use it
  • Loading branch information
jef-n committed Apr 17, 2013
1 parent 83cb282 commit e0732a06286823bc0f0cb8d65e29682591dad52d
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
@@ -210,12 +210,7 @@ QgsSymbolV2* QgsCategorizedSymbolRendererV2::symbolForFeature( QgsFeature& featu
if ( symbol == NULL )
{
// if no symbol found use default one
//return symbolForValue( QVariant( "" ) );
// What is default? Empty string may be a legal value, and features not found
// should not be rendered using empty string value category symbology.
// We also need to get NULL in that case so that willRenderFeature()
// may be used to count features.
return 0;
return symbolForValue( QVariant( "" ) );
}

if ( mRotationFieldIdx == -1 && mSizeScaleFieldIdx == -1 )

0 comments on commit e0732a0

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