Skip to content
Permalink
Browse files
Initialize default symbol to 0 in rule based renderer
  • Loading branch information
mhugent authored and alexbruy committed Dec 2, 2011
1 parent 1025bdf commit 2f91c1c
Showing 1 changed file with 1 addition and 3 deletions.
@@ -117,10 +117,8 @@ QgsRuleBasedRendererV2::Rule& QgsRuleBasedRendererV2::Rule::operator=( const Qgs
/////////////////////

QgsRuleBasedRendererV2::QgsRuleBasedRendererV2( QgsSymbolV2* defaultSymbol )
: QgsFeatureRendererV2( "RuleRenderer" )
: QgsFeatureRendererV2( "RuleRenderer" ), mDefaultSymbol( defaultSymbol ), mCurrentSymbol( 0 )
{
mDefaultSymbol = defaultSymbol;

// add the default rule
mRules << Rule( defaultSymbol->clone() );
}

0 comments on commit 2f91c1c

Please sign in to comment.