Skip to content

Commit

Permalink
input by duration: fixed unexpected reset of active notes
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPudashkin committed Feb 12, 2025
1 parent 6b31921 commit f68ed47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notation/internal/notationnoteinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ NotationNoteInput::NotationNoteInput(const IGetScore* getScore, INotationInterac
updateInputState();
} else if (shouldSetupInputNote()) {
const NoteInputState& is = state();
const staff_idx_t prevStaffIdx = mu::engraving::staff2track(is.prevTrack());
const staff_idx_t prevStaffIdx = mu::engraving::track2staff(is.prevTrack());

if (prevStaffIdx != is.staffIdx()) {
setupInputNote();
Expand Down

0 comments on commit f68ed47

Please sign in to comment.