Opened 18 years ago

Closed 18 years ago

#1669 closed defect (fixed)

msSaveMap() doesn't save TRANSPARENCY ALPHA properly

Reported by: dmorissette Owned by: dmorissette
Priority: high Milestone:
Component: MapServer C Library Version: 4.8
Severity: normal Keywords:
Cc:

Description

msSaveMap() currently writes "TRNASPARENCY 1000" instead of "TRANSPARENCY
ALPHA", a special case needs to be added for that in writeLayer().

While checking mapfile.c, I noticed that loadLayer() uses
"getIntegerOrSymbol(&(layer->transparency), 1, MS_GD_ALPHA)" but
loadLayerString() uses "getInteger(&(layer->transparency))". 

Steve, can you please confirm that they should both be using getIntegerOrSymbol()?

I'll take care of fixing this once I get confirmation from you Steve.

Change History (2)

comment:1 by sdlime, 18 years ago

Sean added that support and he missed fixing loadLayerString(). So:

  1) both should use getIntegerOrSymbol()
  2) writeLayer() should write "TRANSPARENCY ALPHA"

Steve

comment:2 by dmorissette, 18 years ago

Resolution: fixed
Status: newclosed
Fixed in both 4.9 and 4.8.2
Note: See TracTickets for help on using tickets.