Not all steps in Undo and Redo drawn

• Oct 28, 2013 - 14:04
Type
Functional
Severity
3
Status
closed
Project

1. Open attached score (produced in 1.3).
2. Click on note.
3. 'Staff text'.
4. Enter something.
5. Click elsewhere.
6. Drag it and let go, twice.
7. Click elsewhere (deselecting it).
8. 'Undo', twice.
9. 'Redo'.

Result: The text disappears, until something (e.g. notehead) is clicked.

Discussion: I don't know if it's related, but there is an additional step in the 'Undo' stack after step 8 that doesn't seem to do anything and probably shouldn't be there.

Using MuseScore 2.0 Nightly Build (6df1e21) - Mac 10.7.5.


Comments

Severity

I can't reproduce the disappearing text; I think that may have been fixed with a change I made a while back.

I *can*, however, reproduce the extra step on the undo stack - at least I assume I am seeing the same thing as you are describing. Make some sort of edit (change pitch of a note, say), then click a note, then add a staff text, the undo. The staff text is gone, and you'd expect the next undo to undo your original edit. ut nothing happens, or so it seems.

What actually is happening is that the first undo isn't undoing the *creating* of the staff text; it is undoing your *typing* of it. So it returns you to the state you were at when you first pressed Ctrl+T - an empty text, which will remain in your score.

I have a fix for this planned as part of my fix for #31471: Links not working for system text. So if the first part is indeed not reproducible and if we are talking about the same thing for the second part, we'll be able to close this once my fix is merged.