Skip to content
Permalink
Browse files

Merge pull request #9156 from nyalldawson/fix_21188_render_cats

[categorized] Fix blank layers when using categorized renderer
  • Loading branch information
nyalldawson committed Feb 12, 2019
2 parents 07746db + 7714bfb commit f95d3235f3e95f1d1ecd721dfd4667cde675b25b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology/qgscategorizedsymbolrenderer.cpp
@@ -533,7 +533,7 @@ QString QgsCategorizedSymbolRenderer::filter( const QgsFields &fields )

for ( const QgsRendererCategory &cat : qgis::as_const( mCategories ) )
{
if ( cat.value() == "" )
if ( cat.value() == "" || cat.value().isNull() )
{
hasDefault = true;
defaultActive = cat.renderState();

0 comments on commit f95d323

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