Skip to content
Permalink
Browse files
Fixed #3681
git-svn-id: http://svn.osgeo.org/qgis/trunk@15620 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 27, 2011
1 parent f760d01 commit 08428f0f30625311890ff639ba5d8f49ccd501c2
@@ -138,6 +138,8 @@ QgsSymbolV2* QgsCategorizedSymbolRendererV2::symbolForFeature( QgsFeature& featu

// find the right symbol for the category
QgsSymbolV2* symbol = symbolForValue( *ita );
if ( symbol == NULL )
return NULL;

if ( mRotationFieldIdx == -1 && mSizeScaleFieldIdx == -1 )
return symbol; // no data-defined rotation/scaling - just return the symbol
@@ -137,7 +137,8 @@ QgsSymbolV2* QgsGraduatedSymbolRendererV2::symbolForFeature( QgsFeature& feature

// find the right category
QgsSymbolV2* symbol = symbolForValue( ita->toDouble() );

if ( symbol == NULL )
return NULL;

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

0 comments on commit 08428f0

Please sign in to comment.