We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 029c403 commit 58a7edbCopy full SHA for 58a7edb
src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
@@ -193,7 +193,7 @@ QgsSymbolV2* QgsGraduatedSymbolRendererV2::symbolForFeature( QgsFeature& feature
193
}
194
195
// Null values should not be categorized
196
- if ( attrs[mAttrNum].toString().isEmpty() )
+ if ( attrs[mAttrNum].isNull() )
197
return NULL;
198
199
// find the right category
@@ -809,7 +809,7 @@ QgsGraduatedSymbolRendererV2* QgsGraduatedSymbolRendererV2::createRenderer(
809
810
// create list of non-null attribute values
811
while ( fit.nextFeature( f ) )
812
- if ( !f.attribute( attrNum ).toString().isEmpty() )
+ if ( !f.attribute( attrNum ).isNull() )
813
values.append( f.attribute( attrNum ).toDouble() );
814
815
// calculate the breaks
0 commit comments