Opened 16 years ago

Closed 16 years ago

#2465 closed defect (fixed)

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

Reported by: aalbarello Owned by: 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 (1)

svn.diff (747 bytes ) - added by aalbarello 16 years ago.

Download all attachments as: .zip

Change History (3)

by aalbarello, 16 years ago

Attachment: svn.diff added

comment:1 by sdlime, 16 years ago

Status: newassigned

comment:2 by sdlime, 16 years ago

Resolution: fixed
Status: assignedclosed

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

Steve

Note: See TracTickets for help on using tickets.