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.31k stars 2.66k forks source link

Corruption when inserting notes (using insert mode or Ctrl+Click) if some staff has a tuplet at that location #18299

Open cbjeukendrup opened 1 year ago

cbjeukendrup commented 1 year ago

Issue type

File corruption

Bug description

No response

Steps to reproduce

  1. Create score with two or more staves
  2. In the first staff, create a tuple consisting of three quarters in the time of two
  3. In the second staff, enter a quarter note
  4. Use insert mode or Ctrl+Click to insert a note after the first quarter in the second staff Result: time is also inserted into the tuplet, but this is done incorrectly, leading to corruption of the score.

Screenshots/Screen recordings

https://github.com/musescore/MuseScore/assets/48658420/65400b7c-9972-4a98-a3be-6b40eec2d4a2

MuseScore Version

3.x - master

Regression

No.

Operating system

*

Additional context

No response

oktophonie commented 1 year ago

The simplest and safest thing would be to disallow this operation (just as it is when adding a note directly to the stave containing the tuplet), using the same error message as recently reinstated in https://github.com/musescore/MuseScore/pull/18302