Skip to content
Permalink
Browse files
fix warning
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 b810ad6a03b48cf3299bf7b213ac2ad62de4ffb6
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/mapserver/qgsfilter.cpp
@@ -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)

0 comments on commit b810ad6

Please sign in to comment.