Skip to content

Commit e0732a0

Browse files
committed
fix #7630 - categorized renderer gui produces an empty string category as catch all case, so use it
1 parent 83cb282 commit e0732a0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,7 @@ QgsSymbolV2* QgsCategorizedSymbolRendererV2::symbolForFeature( QgsFeature& featu
210210
if ( symbol == NULL )
211211
{
212212
// if no symbol found use default one
213-
//return symbolForValue( QVariant( "" ) );
214-
// What is default? Empty string may be a legal value, and features not found
215-
// should not be rendered using empty string value category symbology.
216-
// We also need to get NULL in that case so that willRenderFeature()
217-
// may be used to count features.
218-
return 0;
213+
return symbolForValue( QVariant( "" ) );
219214
}
220215

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

0 commit comments

Comments
 (0)