Skip to content

Commit 231a5d2

Browse files
author
wonder
committed
Fixed #3681
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15620 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2a656f1 commit 231a5d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ QgsSymbolV2* QgsCategorizedSymbolRendererV2::symbolForFeature( QgsFeature& featu
138138

139139
// find the right symbol for the category
140140
QgsSymbolV2* symbol = symbolForValue( *ita );
141+
if ( symbol == NULL )
142+
return NULL;
141143

142144
if ( mRotationFieldIdx == -1 && mSizeScaleFieldIdx == -1 )
143145
return symbol; // no data-defined rotation/scaling - just return the symbol

src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ QgsSymbolV2* QgsGraduatedSymbolRendererV2::symbolForFeature( QgsFeature& feature
137137

138138
// find the right category
139139
QgsSymbolV2* symbol = symbolForValue( ita->toDouble() );
140-
140+
if ( symbol == NULL )
141+
return NULL;
141142

142143
if ( mRotationFieldIdx == -1 && mSizeScaleFieldIdx == -1 )
143144
return symbol; // no data-defined rotation/scaling - just return the symbol

0 commit comments

Comments
 (0)