Skip to content

Commit

Permalink
typo + #if 0 for todo code
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Feb 12, 2019
1 parent 53ec2cf commit 24a74d1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1267,15 +1267,17 @@ bool QgsRasterLayer::writeSld( QDomNode &node, QDomDocument &doc, QString &error
QDomElement featureTypeStyleElem = doc.createElement( QStringLiteral( "sld:FeatureTypeStyle" ) );
userStyleElem.appendChild( featureTypeStyleElem );

// TODO: readd this tag if there is a way to fill it's value with the named style
// by default Nam under sld:FeatureTypeStyle can have 0 occurrences
#if 0
// TODO: Is there a way to fill it's value with the named style?
// by default <sld:Name> under <sld:FeatureTypeStyle> can have 0 occurrences
// the same happen for tags:
// sld:Title
// sld:Abstract
// sld:FeatureTypeName
// sld:SemanticTypeIdentifier
//QDomElement typeStyleNameElem = doc.createElement( QStringLiteral( "sld:Name" ) );
//featureTypeStyleElem.appendChild( typeStyleNameElem );
QDomElement typeStyleNameElem = doc.createElement( QStringLiteral( "sld:Name" ) );
featureTypeStyleElem.appendChild( typeStyleNameElem );
#endif

QDomElement typeStyleRuleElem = doc.createElement( QStringLiteral( "sld:Rule" ) );
featureTypeStyleElem.appendChild( typeStyleRuleElem );
Expand Down

0 comments on commit 24a74d1

Please sign in to comment.