musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.33k stars 2.66k forks source link

Apply time signature after undo can produce inconsistent results #24962

Open wizofaus opened 1 month ago

wizofaus commented 1 month ago

Issue type

UX/Interaction bug (incorrect behaviour)

Description with steps to reproduce

  1. Create a new score with default 4/4 time signature and fill 3 measures with 1/4 notes
  2. Select just the first two measures
  3. Apply a 3/4 time signature from the palette
  4. Note the following (4/4) measure remains as is, with an extra rest inserted in the previous (new) 3/4 measure
  5. Undo - returns to state after step 2. (first two measures selected)
  6. Re-execute step 3 (apply 3/4 time signature)
  7. Expected: should produce same result as seen in step 4
  8. Actual: result is different, with the notes from all 3 measures now spread over 4 3/4 measures followed by an empty 4/4 measure.

Supporting files, videos and screenshots

Start: image After first 3/4 apply: image After undo and reapply 3/4: image

What is the latest version of MuseScore Studio where this issue is present?

4.4

Regression

Same in all versions of 4 Regression of MuseScore 3

Operating system

Windows 11

Additional context

Not a major issue, just a weird quirk that may be worth investigating, as anything that means "undo" isn't properly restoring a previous state can potentially lead to more serious problems.

Checklist