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)
Change History (3)
by , 16 years ago
comment:1 by , 16 years ago
Status: | new → assigned |
---|
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in both the 5.0 branch and the main trunk. Thanks for catching this.
Steve