Ticket #2465 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

Mapserver fails to copy style and label attribute bindings on map->clone

Reported by: aalbarello Assigned to: sdlime
Priority: normal Milestone: 5.0.1 release
Component: MapServer C Library Version: 5.0
Severity: normal Keywords:
Cc: dmorissette

Description

When cloning a map, the new style and label attribute bindings introduced with MapServer 5.0 (ANGLE [item], SIZE [item] etc.) which are working correctly in the original map, fail to work in the resulting map.

This is due to the fact that, while the bindings member of the styleObj and labelObj struct is copied correctly, the numbindings member is missing from both msCopyLabel() and msCopyStyle() in mapcopy.c and therefore stays 0 in the cloned map.

Adding

MS_COPYSTELEM(numbindings);

to the two functions mentioned fixes this.

I'm attaching a diff against svn HEAD. Hopefully this can be backported in time for 5.0.1.

Thanks,

Andreas Albarello

Attachments

svn.diff (0.7 kB) - added by aalbarello on 01/08/08 06:38:08.

Change History

01/08/08 06:38:08 changed by aalbarello

  • attachment svn.diff added.

01/08/08 13:28:47 changed by sdlime

  • status changed from new to assigned.

01/10/08 10:33:40 changed by sdlime

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in both the 5.0 branch and the main trunk. Thanks for catching this.

Steve