Skip to content

Commit

Permalink
SLD parsing: handling ogc:Literal within CssParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrocha committed Jan 15, 2017
1 parent 6ba303e commit 2de18c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/symbology-ng/qgssymbollayerutils.cpp
Expand Up @@ -2574,21 +2574,21 @@ QgsStringMap QgsSymbolLayerUtils::getSvgParameterList( QDomElement &element )
if ( paramElem.localName() == QLatin1String( "SvgParameter" ) || paramElem.localName() == QLatin1String( "CssParameter" ) )
{
QString name = paramElem.attribute( QStringLiteral( "name" ) );
if (paramElem.firstChild().nodeType() == QDomNode::TextNode)
if ( paramElem.firstChild().nodeType() == QDomNode::TextNode )
{
value = paramElem.firstChild().nodeValue();
}
else
{
if (paramElem.firstChild().nodeType() == QDomNode::ElementNode &&
paramElem.firstChild().localName() == QLatin1String("Literal"))
if ( paramElem.firstChild().nodeType() == QDomNode::ElementNode &&
paramElem.firstChild().localName() == QLatin1String( "Literal" ) )
{
QgsDebugMsg(paramElem.firstChild().localName());
QgsDebugMsg( paramElem.firstChild().localName() );
value = paramElem.firstChild().firstChild().nodeValue();
}
else
{
QgsDebugMsg(QString("unexpected child of %1").arg(paramElem.localName()));
QgsDebugMsg( QString( "unexpected child of %1" ).arg( paramElem.localName() ) );
}
}

Expand Down

0 comments on commit 2de18c9

Please sign in to comment.