Skip to content
Permalink
Browse files
Show all layer fields in labeling dialog
git-svn-id: http://svn.osgeo.org/qgis/trunk@15181 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 17, 2011
1 parent d373bb6 commit 5b23cf6ffdccd3b1201681e0e073d35ea964cb70
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/qgslabelinggui.cpp
@@ -303,8 +303,9 @@ QgsPalLayerSettings QgsLabelingGui::layerSettings()

void QgsLabelingGui::populateFieldNames()
{
QgsFieldMap fields = mLayer->dataProvider()->fields();
for ( QgsFieldMap::iterator it = fields.begin(); it != fields.end(); it++ )
const QgsFieldMap& fields = mLayer->pendingFields();
QgsFieldMap::const_iterator it = fields.constBegin();
for ( ; it != fields.constEnd(); it++ )
{
cboFieldName->addItem( it->name() );
}

0 comments on commit 5b23cf6

Please sign in to comment.