Skip to content

Commit e2df800

Browse files
committed
fix retrieval of labeling settings for layers with ids with no ascii characters
1 parent a37b3e2 commit e2df800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgspallabeling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3308,7 +3308,7 @@ int QgsPalLabeling::prepareLayer( QgsVectorLayer* layer, QStringList& attrNames,
33083308
// create the pal layer
33093309
double priority = 1 - lyr.priority / 10.0; // convert 0..10 --> 1..0
33103310

3311-
Layer* l = mPal->addLayer( layer->id().toUtf8().data(),
3311+
Layer* l = mPal->addLayer( layer->id(),
33123312
arrangement,
33133313
priority, lyr.obstacle, true, lyr.drawLabels,
33143314
lyr.displayAll );

0 commit comments

Comments
 (0)