Cancelling new text leaves an undo step that no longer exists, and the score is marked as modified
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start by tracing the score history and undo handling for text and dynamic editing, then compare how cancelled edits and grouped undo steps reach the History panel. Reproduce the three reported cases in MuseScore Studio and identify the relevant code and tests from those entry points. Done means cancelling empty text leaves the score unmodified, and each History entry matches one undo step and updates immediately.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Issue type
UX/Interaction bug (incorrect behaviour)
Description with steps to reproduce
- Open a saved score
- Select a note and press
Ctrl+Tto add staff text - Press
Escwithout typing anything
Result: no text is added, but the score is marked as modified, the History panel lists Add text, and the Edit menu still names Undo Add text (greyed out). If a change was made before step 2, Undo undoes that change, while the History panel still shows Add text as the last step.
Expected: the score isn't marked as modified, and nothing refers to the cancelled text.
- Add an f to a note, then a crescendo hairpin from the f to a later note
- Select the hairpin's end handle, press
Ctrl+Dand choose pp in the popup (softer than the f, so the hairpin flips to a diminuendo)
Result: the History panel ends with these three steps, which to the user feels like a single action, i.e. adding a pp:
- Add dynamic (opening the dynamics popup)
- Add dynamic (clicking the pp)
- Change hairpin type (the hairpin is flipped)
A single undo removes all three steps.
Expected: the History panel matches what undo does: one entry for one undo step.
The History panel only catches up after the next change or undo.
The same happens when typing text, such as a dynamic or staff text: after editing ends, the History panel still lists one Keystroke edit entry per key typed.
Supporting files, videos and screenshots
https://github.com/user-attachments/assets/e2bf3879-17b1-4dd2-9291-a74c2970948c
https://github.com/user-attachments/assets/f93f6741-d992-405f-8a7a-d5c7ab5a4c5f
In which versions of MuseScore Studio is this issue present?
Nightly main
Regression
No.
Operating system
macOS 27.2.1
Additional context
No response
Checklist
- This report follows the guidelines for reporting bugs and issues
- I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
- I have attached all requested files and information to this report
- I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible
- Lingua principale
- C++
- Stelle
- 15.5k
- Fork
- 3.4k
- Merge medio
- 2g 18h
- PR unite (30g)
- 114
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di musescore/MuseScore
-
ninja_build.sh -t compile_commands fails: `cmake ..` points at build/ instead of the repo rootApertaneeds review regression MS4
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
I maintainer di solito rispondono entro 2 giorni
-
MusicXML export: overlapping dashed text lines (<dashes>) are all exported with duplicate number="1"Apertacommunity MusicXML
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 2 giorni
-
MusicXML import loses explicit slur direction when the stop precedes the start in document orderApertaneeds review
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
needs review
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
needs review
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
musescore/MuseScore#35683 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di musescore/MuseScore
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
component: tabs platform: macOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
zen-browser/desktop#16860 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
metasequoiaime/msime#12003 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
windirstat/windirstat#776 ·
I maintainer di solito rispondono entro 2 giorni