[AdgMarker] Avoid CpmlSegment caching
commite1b5b96908a1cdaca343e3f8b72c33934a5ac4e9
authorNicola Fontana <nicola@localhost.localdomain>
Sat, 20 Feb 2010 14:15:57 +0000 (20 15:15 +0100)
committerNicola Fontana <ntd@entidi.it>
Sat, 20 Feb 2010 14:31:13 +0000 (20 15:31 +0100)
treed442eba74664a847bf42d8ff07011f15538dd692
parentdb1c0aa529dd00d30b4e762190a0ef426d34657a
[AdgMarker] Avoid CpmlSegment caching

Do not try to cache results while a new segment is requested: although
trail and n_segment could be the same, the internal CpmlSegment data
could change.

When AdgLDim arranges the layout and changes the path data (to force
outside arrows for example), it reuses the same CpmlPath. This means
trail and n_segment are still the same, but the internal CpmlPath data
could be totally different, hence causing segmentation faults in some
situations.

Closes issue #33: http://dev.entidi.com/p/adg/issues/33/
adg/adg-marker.c