Skip to content
Permalink
Browse files

SLD parsing: handling ogc:Literal within CssParameter

  • Loading branch information
jgrocha committed Jan 15, 2017
1 parent 6ba303e commit 2de18c92fc0498747262ba8a34ea4de9a5350534
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/symbology-ng/qgssymbollayerutils.cpp
@@ -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() ) );
}
}

0 comments on commit 2de18c9

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