Ticket #1669 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

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

Changed 7 years ago by sdlime

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

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

Steve

Changed 7 years ago by dmorissette

  • status changed from new to closed
  • resolution set to fixed
Fixed in both 4.9 and 4.8.2
Note: See TracTickets for help on using tickets.