Skip to content
Permalink
Browse files
fix warning
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14336 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 5, 2010
1 parent a785159 commit 815b4c7095f0d156100e22cb2b14fe51d4e4037d
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 815b4c7

Please sign in to comment.