Skip to content

Commit

Permalink
fix #7630 - categorized renderer gui produces an empty string categor…
Browse files Browse the repository at this point in the history
…y as catch all case, so use it
  • Loading branch information
jef-n committed Apr 17, 2013
1 parent 83cb282 commit e0732a0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit e0732a0

Please sign in to comment.