Skip to content

Commit 24a74d1

Browse files
committed
typo + #if 0 for todo code
1 parent 53ec2cf commit 24a74d1

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎src/core/raster/qgsrasterlayer.cpp‎

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

1270-
// TODO: readd this tag if there is a way to fill it's value with the named style
1271-
// by default Nam under sld:FeatureTypeStyle can have 0 occurrences
1270+
#if 0
1271+
// TODO: Is there a way to fill it's value with the named style?
1272+
// by default <sld:Name> under <sld:FeatureTypeStyle> can have 0 occurrences
12721273
// the same happen for tags:
12731274
// sld:Title
12741275
// sld:Abstract
12751276
// sld:FeatureTypeName
12761277
// sld:SemanticTypeIdentifier
1277-
//QDomElement typeStyleNameElem = doc.createElement( QStringLiteral( "sld:Name" ) );
1278-
//featureTypeStyleElem.appendChild( typeStyleNameElem );
1278+
QDomElement typeStyleNameElem = doc.createElement( QStringLiteral( "sld:Name" ) );
1279+
featureTypeStyleElem.appendChild( typeStyleNameElem );
1280+
#endif
12791281

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

0 commit comments

Comments
 (0)