Ticket #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
Note: See
TracTickets for help on using
tickets.
