Skip to content
Permalink
Browse files

[vectortiles] Fix cannot edit label style through Layer Properties di…

…alog

Fixes #37399

(cherry picked from commit 5a2bc75)
  • Loading branch information
nyalldawson committed Sep 1, 2020
1 parent 61dfe4d commit 94a208f0e2fff1702b5bc33b04ae843a58d7e501
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/gui/vectortile/qgsvectortilebasiclabelingwidget.cpp
@@ -371,7 +371,14 @@ void QgsVectorTileBasicLabelingWidget::editStyleAtIndex( const QModelIndex &inde
}
else
{
// TODO: implement when adding support for vector tile layer properties dialog
QgsLabelSettingsDialog dlg( labelSettings, vectorLayer, mMapCanvas, this, labelSettings.layerType );
if ( dlg.exec() )
{
QgsVectorTileBasicLabelingStyle style = mLabeling->style( index.row() );
style.setLabelSettings( dlg.settings() );
mLabeling->setStyle( index.row(), style );
emit widgetChanged();
}
}
}

0 comments on commit 94a208f

Please sign in to comment.
You can’t perform that action at this time.