Slur across voices are not restored correctly on file read

• Sep 30, 2014 - 15:15
Type
Functional
Severity
S2 - Critical
Status
closed
Project

6006fb6ea6

  1. Create a score for flute
  2. In the first measure enter two quarters notes in the first voice and two quarter notes in the second voice
  3. Click the first quarter of the second voice and press S
  4. Click the slur and move the first handle up so it's attached to the first voice
  5. Save and open

Expected result: the slur is restored correctly.
Actual result: the first handle of the slur is attached to voice 2 and the slur is not well placed.

Variation, create a slur between the two quarters of voice 1. Move the second handle down to voice 2. Save and reopen. The slur is gone.


Comments

If the slur is entered directly from voice 1 to voice 2 by selecting the first note and the second note and press S. There is no problem. In this case, the track info is stored in the slur element in MSCX.

When the bug happens, the track info is stored in SlurSegment. This information is completely ignored later on.

Correct case is first

> <Slur id="2">
> <track>0</track>
> <track2>1</track2>
> <SlurSegment no="0">
> <o1 x="0.298567" y="-0.383872"/>
> </SlurSegment>
> </Slur>
124,130d130
< <Slur id="2">
< <track>1</track>
< <SlurSegment no="0">
< <o1 x="-0.740634" y="0.133422"/>
< <track>1</track>
< </SlurSegment>
< </Slur>