-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Fix #32068: String tunings drag & drop #32075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix #32068: String tunings drag & drop #32075
Conversation
cbjeukendrup
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me, one question:
src/engraving/dom/measure.cpp
Outdated
| return nullptr; | ||
| } | ||
| staffIdx = staff->idx(); | ||
| e->setParent(first()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to ensure that it is a "chord rest or time tick" segment and not a random key signature header segment etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider 'reparenting' these elements to measures instead, since that's what they can be added to? Last I checked, regardless of which segment they are anchored to, they are laid out at the start of the measure (so anchoring should be disabled accordingly, too).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ensure that it is a "chord rest or time tick segment"...
Updated now @cbjeukendrup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good point @XiaoMigros - definitely worth considering. We'll need to discuss a couple of design points before going ahead with that though, so for the purposes of 4.7 we'll push ahead with the current version of string tunings. Thanks!
|
Yes, looks good. I believe I only tested copy/paste thoroughly, hence the oversight. Thanks for catching this! |
2b8f753 to
9873e97
Compare
Resolves: #32068
String tunings are handled by
prepareDropMeasureAnchorElementinNotationInteraction. Removing the logic fromMeasure::acceptDropin 427f6d6 means that we never set a target measure for the drop. The changes in this PR revert to what we had before this commit (with a couple tweaks).Curious to hear your thoughts too @XiaoMigros if you get a chance - copy/pasting string tunings still appears to work as expected after these changes.