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 2f91c1cb1e333b39c4c1ee90449e4ca8a008e9bd
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/core/symbology-ng/qgsrulebasedrendererv2.cpp
@@ -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.