Skip to content

Commit b9d0bc8

Browse files
committed
Followup to b383c69. Keep labeling dialog from calling init() twice from vector props dialog
1 parent 112ad3c commit b9d0bc8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/app/qgisapp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4295,6 +4295,7 @@ void QgisApp::labeling()
42954295
QDialog *dlg = new QDialog( this );
42964296
dlg->setWindowTitle( tr( "Layer labeling settings" ) );
42974297
QgsLabelingGui *labelingGui = new QgsLabelingGui( mLBL, vlayer, mMapCanvas, dlg );
4298+
labelingGui->init(); // load QgsPalLayerSettings for layer
42984299
labelingGui->layout()->setContentsMargins( 0, 0, 0, 0 );
42994300
QVBoxLayout *layout = new QVBoxLayout( dlg );
43004301
layout->addWidget( labelingGui );

src/app/qgslabelinggui.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@ QgsLabelingGui::QgsLabelingGui( QgsPalLabeling* lbl, QgsVectorLayer* layer, QgsM
184184
// TODO: is this necessary? maybe just use the data defined-only rotation?
185185
mPointAngleDDBtn->setVisible( false );
186186

187-
// load layer's current QgsPalLayerSettings
188-
init();
189-
190187
// Global settings group for groupboxes' saved/retored collapsed state
191188
// maintains state across different dialogs
192189
foreach ( QgsCollapsibleGroupBox *grpbox, findChildren<QgsCollapsibleGroupBox*>() )

0 commit comments

Comments
 (0)