Ticket #2011 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

msWriteMapContext does not ignore MS_DELETE layers

Reported by: bartvde@… Owned by: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: 4.10
Severity: normal Keywords:
Cc:

Description

whereas msSaveMap does.

This little patch against 4.8.4 solves this:

--- mapcontext.c.orig   2007-01-17 15:58:59.000000000 +0100
+++ mapcontext.c        2007-01-17 16:12:42.000000000 +0100
@@ -1900,7 +1900,7 @@
   /* Loop on all layer   */
   for(i=0; i<map->numlayers; i++)
   {
-      if(map->layers[i].connectiontype == MS_WMS)
+      if(!(map->layers[i].status == MS_DELETE) &&
(map->layers[i].connectiontype == MS_WMS))
       {
           if(map->layers[i].status == MS_OFF)
               nValue = 1;

Change History

Changed 6 years ago by dmorissette

  • status changed from new to closed
  • resolution set to fixed
Thanks Bart. I have applied the patch in both CVS HEAD (future 5.0) and the 4.10
branch.
Note: See TracTickets for help on using tickets.