We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d373bb6 commit 5b23cf6Copy full SHA for 5b23cf6
src/app/qgslabelinggui.cpp
@@ -303,8 +303,9 @@ QgsPalLayerSettings QgsLabelingGui::layerSettings()
303
304
void QgsLabelingGui::populateFieldNames()
305
{
306
- QgsFieldMap fields = mLayer->dataProvider()->fields();
307
- for ( QgsFieldMap::iterator it = fields.begin(); it != fields.end(); it++ )
+ const QgsFieldMap& fields = mLayer->pendingFields();
+ QgsFieldMap::const_iterator it = fields.constBegin();
308
+ for ( ; it != fields.constEnd(); it++ )
309
310
cboFieldName->addItem( it->name() );
311
}
0 commit comments