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 authored and rldhont committed Jan 23, 2017
1 parent 6f09793 commit 8d99a12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/symbology-ng/qgssymbollayerv2utils.cpp
Expand Up @@ -2663,21 +2663,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() ) );
}
}

Expand Down

0 comments on commit 8d99a12

Please sign in to comment.