Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 5a2bc75
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/gui/vectortile/qgsvectortilebasiclabelingwidget.cpp
Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit 5a2bc75

Please sign in to comment.