Skip to content

Commit

Permalink
Initialize default symbol to 0 in rule based renderer
Browse files Browse the repository at this point in the history
  • 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.
4 changes: 1 addition & 3 deletions src/core/symbology-ng/qgsrulebasedrendererv2.cpp
Expand Up @@ -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() );
}
Expand Down

0 comments on commit 2f91c1c

Please sign in to comment.