Skip to content
Permalink
Browse files

Fix #11146 (rule check state not saved)

  • Loading branch information
wonder-sk committed Sep 7, 2014
1 parent bd3f593 commit 429133738ffd073360909b1ffa369b08ba06feb4
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/symbology-ng/qgsrulebasedrendererv2.cpp
@@ -281,6 +281,8 @@ QDomElement QgsRuleBasedRendererV2::Rule::save( QDomDocument& doc, QgsSymbolV2Ma
ruleElem.setAttribute( "label", mLabel );
if ( !mDescription.isEmpty() )
ruleElem.setAttribute( "description", mDescription );
if ( !mCheckState )
ruleElem.setAttribute( "checkstate", 0 );

for ( RuleList::iterator it = mChildren.begin(); it != mChildren.end(); ++it )
{
@@ -589,6 +591,8 @@ QgsRuleBasedRendererV2::Rule* QgsRuleBasedRendererV2::Rule::create( QDomElement&
int scaleMaxDenom = ruleElem.attribute( "scalemaxdenom", "0" ).toInt();
Rule* rule = new Rule( symbol, scaleMinDenom, scaleMaxDenom, filterExp, label, description );

rule->setCheckState( ruleElem.attribute( "checkstate", "1" ).toInt() );

QDomElement childRuleElem = ruleElem.firstChildElement( "rule" );
while ( !childRuleElem.isNull() )
{

1 comment on commit 4291337

@3nids

This comment has been minimized.

Copy link
Member

@3nids 3nids commented on 4291337 Sep 7, 2014

Thanks !

Please sign in to comment.
You can’t perform that action at this time.