Skip to content
Permalink
Browse files

[categorized] Fix blank layers when using categorized renderer

Fixes #21188
  • Loading branch information
nyalldawson committed Feb 12, 2019
1 parent 51a4981 commit 7714bfbfbe6acec1c193365a173c822cb72c4361
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 7714bfb

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