Skip to content

Commit 8d99a12

Browse files
jgrocharldhont
authored andcommitted
SLD parsing: handling ogc:Literal within CssParameter
1 parent 6f09793 commit 8d99a12

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/core/symbology-ng/qgssymbollayerv2utils.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,21 +2663,21 @@ QgsStringMap QgsSymbolLayerV2Utils::getSvgParameterList( QDomElement &element )
26632663
if ( paramElem.localName() == "SvgParameter" || paramElem.localName() == "CssParameter" )
26642664
{
26652665
QString name = paramElem.attribute( "name" );
2666-
if (paramElem.firstChild().nodeType() == QDomNode::TextNode)
2666+
if ( paramElem.firstChild().nodeType() == QDomNode::TextNode )
26672667
{
26682668
value = paramElem.firstChild().nodeValue();
26692669
}
26702670
else
26712671
{
2672-
if (paramElem.firstChild().nodeType() == QDomNode::ElementNode &&
2673-
paramElem.firstChild().localName() == "Literal")
2672+
if ( paramElem.firstChild().nodeType() == QDomNode::ElementNode &&
2673+
paramElem.firstChild().localName() == "Literal" )
26742674
{
2675-
QgsDebugMsg(paramElem.firstChild().localName());
2675+
QgsDebugMsg( paramElem.firstChild().localName() );
26762676
value = paramElem.firstChild().firstChild().nodeValue();
26772677
}
26782678
else
26792679
{
2680-
QgsDebugMsg(QString("unexpected child of %1").arg(paramElem.localName()));
2680+
QgsDebugMsg( QString( "unexpected child of %1" ).arg( paramElem.localName() ) );
26812681
}
26822682
}
26832683

0 commit comments

Comments
 (0)