Skip to content
Permalink
Browse files

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

…alog

Fixes #37399
  • Loading branch information
nyalldawson committed Sep 1, 2020
1 parent c869a62 commit 5a2bc7531981a78f770bdca6c11a747ac0e13347
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 5a2bc75

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