Skip to content

Commit

Permalink
Merge pull request #9156 from nyalldawson/fix_21188_render_cats
Browse files Browse the repository at this point in the history
[categorized] Fix blank layers when using categorized renderer
  • Loading branch information
nyalldawson committed Feb 12, 2019
2 parents 07746db + 7714bfb commit f95d323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgscategorizedsymbolrenderer.cpp
Expand Up @@ -533,7 +533,7 @@ QString QgsCategorizedSymbolRenderer::filter( const QgsFields &fields )


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

0 comments on commit f95d323

Please sign in to comment.