Opened 17 years ago

Closed 17 years ago

#2011 closed defect (fixed)

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 (1)

comment:1 by dmorissette, 17 years ago

Resolution: fixed
Status: newclosed
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.