Skip to content
Permalink
Browse files

fix orderby not saved in several symbologies (fixes #14043)

  • Loading branch information
nirvn committed Jan 5, 2016
1 parent d10680c commit 16aeb3f1eb4950bf66ea97a5767e765193804256
@@ -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 16aeb3f

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