mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
[categorized] Fix blank layers when using categorized renderer
Fixes #21188
This commit is contained in:
parent
51a4981237
commit
7714bfbfbe
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user