Skip to content

Commit 46ac803

Browse files
committedFeb 1, 2019
typo + #if 0 for todo code
1 parent a9fcfe9 commit 46ac803

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,15 +1331,17 @@ bool QgsRasterLayer::writeSld( QDomNode &node, QDomDocument &doc, QString &error
13311331
QDomElement featureTypeStyleElem = doc.createElement( QStringLiteral( "sld:FeatureTypeStyle" ) );
13321332
userStyleElem.appendChild( featureTypeStyleElem );
13331333

1334-
// TODO: readd this tag if there is a way to fill it's value with the named style
1335-
// by default Nam under sld:FeatureTypeStyle can have 0 occurrences
1334+
#if 0
1335+
// TODO: Is there a way to fill it's value with the named style?
1336+
// by default <sld:Name> under <sld:FeatureTypeStyle> can have 0 occurrences
13361337
// the same happen for tags:
13371338
// sld:Title
13381339
// sld:Abstract
13391340
// sld:FeatureTypeName
13401341
// sld:SemanticTypeIdentifier
1341-
//QDomElement typeStyleNameElem = doc.createElement( QStringLiteral( "sld:Name" ) );
1342-
//featureTypeStyleElem.appendChild( typeStyleNameElem );
1342+
QDomElement typeStyleNameElem = doc.createElement( QStringLiteral( "sld:Name" ) );
1343+
featureTypeStyleElem.appendChild( typeStyleNameElem );
1344+
#endif
13431345

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

0 commit comments

Comments
 (0)
Please sign in to comment.