Skip to content

Commit

Permalink
Applied patch for bug #938. Thanks to smizuno!
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8166 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 19, 2008
1 parent f32862e commit 43dc9b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsattributetabledisplay.cpp
Expand Up @@ -82,11 +82,11 @@ QgsAttributeTableDisplay::QgsAttributeTableDisplay(QgsVectorLayer* layer, QgisAp
QgsVectorDataProvider* provider = mLayer->getDataProvider();
if (provider)
{
const QgsFieldMap& fields = provider->fields();
int fieldcount = provider->fieldCount();
for (int h = 0; h < fieldcount; h++)
const QgsFieldMap& xfields = provider->fields();
QgsFieldMap::const_iterator fldIt;
for (fldIt = xfields.constBegin(); fldIt != xfields.constEnd(); ++fldIt)
{
mSearchColumns->insertItem(fields[h].name());
mSearchColumns->insertItem(fldIt->name());
}
}

Expand Down

0 comments on commit 43dc9b5

Please sign in to comment.