Skip to content

Commit

Permalink
[vectortiles] Fix cannot edit label style through Layer Properties di…
Browse files Browse the repository at this point in the history
…alog

Fixes #37399

(cherry picked from commit 5a2bc75)
  • Loading branch information
nyalldawson committed Sep 1, 2020
1 parent 61dfe4d commit 94a208f
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 94a208f

Please sign in to comment.