Skip to content

Commit ba210d0

Browse files
committedOct 3, 2016
Fix build with GDAL < 2
1 parent c4bf35c commit ba210d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/wfs/qgswfsshareddata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ bool QgsWFSSharedData::createCache()
249249
// do it manually
250250
bool useReservedNames = cacheFields.lookupField( "ogc_fid" ) >= 0;
251251
#if GDAL_VERSION_MAJOR < 2
252-
if ( cacheFields.fieldNameIndex( "geometry" ) >= 0 )
252+
if ( cacheFields.lookupField( "geometry" ) >= 0 )
253253
useReservedNames = true;
254254
#endif
255255
if ( !useReservedNames )

0 commit comments

Comments
 (0)
Please sign in to comment.