mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Applied patch for bug #938. Thanks to smizuno!
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8166 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
f32862e37d
commit
43dc9b57d6
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user