[GRASS-SVN] r60646 - grass/branches/releasebranch_7_0/vector/v.out.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 31 08:36:48 PDT 2014
Author: martinl
Date: 2014-05-31 08:36:47 -0700 (Sat, 31 May 2014)
New Revision: 60646
Modified:
grass/branches/releasebranch_7_0/vector/v.out.ogr/main.c
Log:
v.out.ogr: case insensitive check if layer exists
(merge r60550 from trunk)
Modified: grass/branches/releasebranch_7_0/vector/v.out.ogr/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.out.ogr/main.c 2014-05-31 15:35:38 UTC (rev 60645)
+++ grass/branches/releasebranch_7_0/vector/v.out.ogr/main.c 2014-05-31 15:36:47 UTC (rev 60646)
@@ -483,7 +483,7 @@
for (i = 0; i < OGR_DS_GetLayerCount(Ogr_ds); i++) {
Ogr_layer = OGR_DS_GetLayer(Ogr_ds, i);
Ogr_field = OGR_L_GetLayerDefn(Ogr_layer);
- if (strcmp(OGR_FD_GetName(Ogr_field), options.layer->answer))
+ if (G_strcasecmp(OGR_FD_GetName(Ogr_field), options.layer->answer))
continue;
found = TRUE;
More information about the grass-commit
mailing list