Opened 17 years ago

Closed 17 years ago

#1993 closed defect (fixed)

autofollow is not copied in msCopyLabel

Reported by: andreas.albarello@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: 4.10
Severity: normal Keywords:
Cc:

Description (last modified by sdlime)

labelObj's "autofollow" member is not copied when duplicating a label inside
msCopyLabel (mapcopy.c) preventing so curved labels from working on maps copied
with msCopyMap.

Change History (3)

comment:1 by aalbarello, 17 years ago

Seeing that this one hasn't been fixed in SVN yet, I thought I'd give it a bump. Maybe I haven't been clear enough in outlining the problem, in which case I am providing some steps to reproduce it:

1) In a generic mapscript application, load a map (e.g. from a map file) containing one or more labels with the ANGLE property set to FOLLOW (curved label) and draw it, so that the curved label is visible on the resulting map. In this case everything works fine.

2) Now, instead of drawing the map right away, clone the map object first and then draw the resulting clone. Now labels won't be curved anymore for the reason stated in the original ticket description.

Hope this helps.

comment:2 by sdlime, 17 years ago

Description: modified (diff)

Sorry, the fix was trivial and I should have gotten to it earlier. It is fixed in the main trunk in svn and I'll try to get at the 4.10 branch to fix there too.

Steve

comment:3 by sdlime, 17 years ago

Resolution: fixed
Status: newclosed

Fixed in 4.10 branch as well. Closing...

Steve

Note: See TracTickets for help on using tickets.