[mapserver-commits] r8886 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Apr 7 16:35:31 EDT 2009


Author: dmorissette
Date: 2009-04-07 16:35:31 -0400 (Tue, 07 Apr 2009)
New Revision: 8886

Modified:
   trunk/mapserver/mapfile.c
Log:
Fixed writing of VALIDATION block in msSaveMap() (#2970)

Modified: trunk/mapserver/mapfile.c
===================================================================
--- trunk/mapserver/mapfile.c	2009-04-07 20:30:23 UTC (rev 8885)
+++ trunk/mapserver/mapfile.c	2009-04-07 20:35:31 UTC (rev 8886)
@@ -3394,7 +3394,7 @@
   if (layer->type != -1)
     fprintf(stream, "    TYPE %s\n", msLayerTypes[layer->type]);
   fprintf(stream, "    UNITS %s\n", msUnits[layer->units]);
-  if(&(layer->validation)) writeHashTable(&(layer->metadata), stream, "    ", "VALIDATION");
+  if(&(layer->validation)) writeHashTable(&(layer->validation), stream, "    ", "VALIDATION");
 
   if(layer->classgroup) fprintf(stream, "    CLASSGROUP \"%s\"\n", layer->classgroup);
 
@@ -4229,7 +4229,7 @@
   if(web->legendformat != NULL) fprintf(stream, "    LEGENDFORMAT %s\n", web->legendformat);
   if(web->browseformat != NULL) fprintf(stream, "    BROWSEFORMAT %s\n", web->browseformat);
   if(web->template) fprintf(stream, "    TEMPLATE \"%s\"\n", web->template);
-  if(&(web->validation)) writeHashTable(&(web->metadata), stream, "    ", "VALIDATION");
+  if(&(web->validation)) writeHashTable(&(web->validation), stream, "    ", "VALIDATION");
   fprintf(stream, "  END\n\n");
 }
 



More information about the mapserver-commits mailing list