Skip to content
Permalink
Browse files

Merge pull request #2636 from nirvn/orderby_fix

[rendering order] fix order setting not saved in rule-based symb. (fixes #14043)
  • Loading branch information
m-kuhn committed Jan 5, 2016
2 parents c55cfc0 + 16aeb3f commit 614c84f2c681ac8c8262a7130627272e40ac75c7
@@ -379,6 +379,13 @@ QDomElement QgsInvertedPolygonRenderer::save( QDomDocument& doc )
if ( mPaintEffect && !QgsPaintEffectRegistry::isDefaultStack( mPaintEffect ) )
mPaintEffect->saveProperties( doc, rendererElem );

if ( !mOrderBy.isEmpty() )
{
QDomElement orderBy = doc.createElement( "orderby" );
mOrderBy.save( orderBy );
rendererElem.appendChild( orderBy );
}

return rendererElem;
}

@@ -418,6 +418,13 @@ QDomElement QgsPointDisplacementRenderer::save( QDomDocument& doc )
if ( mPaintEffect && !QgsPaintEffectRegistry::isDefaultStack( mPaintEffect ) )
mPaintEffect->saveProperties( doc, rendererElement );

if ( !mOrderBy.isEmpty() )
{
QDomElement orderBy = doc.createElement( "orderby" );
mOrderBy.save( orderBy );
rendererElement.appendChild( orderBy );
}

return rendererElement;
}

@@ -945,6 +945,13 @@ QDomElement QgsRuleBasedRendererV2::save( QDomDocument& doc )
if ( mPaintEffect && !QgsPaintEffectRegistry::isDefaultStack( mPaintEffect ) )
mPaintEffect->saveProperties( doc, rendererElem );

if ( !mOrderBy.isEmpty() )
{
QDomElement orderBy = doc.createElement( "orderby" );
mOrderBy.save( orderBy );
rendererElem.appendChild( orderBy );
}

return rendererElem;
}

0 comments on commit 614c84f

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