Position offset when moving cross-beam notes with the mouse

• Feb 23, 2019 - 16:49
Reported version
3.0
Priority
P2 - Medium
Type
Functional
Frequency
Few
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project
Tags
  1. Create some cross-staff notes
  2. Move one my dragging the note head with the mouse
    => The note jumps to a different position. (But still moves relatively to the cursor - I suppose the position is calculated as if it was not a cross-staff note.)
Attachment Size
cross_staff_mouse_bug.mscz 3.49 KB

Comments

Status PR created fixed

Fixed in branch master, commit cd342246f6

_fix #284682: position offset when moving cross-beam notes with the mouse

The staff index did not count staffMove() in, which resulted in possibly getting the wrong clef for line2pitch(). This commit uses chord->vStaffIdx() to get the right staff index._

Fix version
3.5.0