Skip to content
Permalink
Browse files
Initialize default symbol to 0 in rule based renderer
  • Loading branch information
mhugent committed Nov 18, 2011
1 parent 7f3ea4a commit d6ffb8106ec6313657a8e67f744b832de4c0dc54
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/core/symbology-ng/qgsrulebasedrendererv2.cpp
@@ -118,10 +118,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 d6ffb81

Please sign in to comment.