Skip to content
Permalink
Browse files
SLD parsing: handling ogc:Literal within CssParameter
  • Loading branch information
jgrocha authored and rldhont committed Jan 22, 2017
1 parent b8f352f commit fe85df944f8576b4c1719776a04bf394f6689f49
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/symbology-ng/qgssymbollayerv2utils.cpp
@@ -2664,21 +2664,21 @@ QgsStringMap QgsSymbolLayerV2Utils::getSvgParameterList( QDomElement &element )
if ( paramElem.localName() == "SvgParameter" || paramElem.localName() == "CssParameter" )
{
QString name = paramElem.attribute( "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() == "Literal")
if ( paramElem.firstChild().nodeType() == QDomNode::ElementNode &&
paramElem.firstChild().localName() == "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 fe85df9

Please sign in to comment.