Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14336 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 5, 2010
1 parent 18b4391 commit b810ad6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/mapserver/qgsfilter.cpp
Expand Up @@ -117,14 +117,15 @@ QgsFilter* QgsFilter::createFilterFromXml( const QDomElement& filterElem, QgsVec
}

//get property index
int attributeIndex;
int attributeIndex = -1;
if ( vl->dataProvider() )
{
attributeIndex = vl->dataProvider()->fieldNameIndex( attributeName );
if ( attributeIndex == -1 )
{
return 0;
}
}

if ( attributeIndex == -1 )
{
return 0;
}

//get literal value(s)
Expand Down

0 comments on commit b810ad6

Please sign in to comment.