Skip to content
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

fix #81456: timesig paste fails #2237

Merged
merged 1 commit into from
Oct 27, 2015

Conversation

MarcSabatella
Copy link
Contributor

The "pos" parameter in the drop fucntions is set differently depending on how the drop was invoked, and I'm kind of figuring this out as I go along. Code I added a while ago to allow adding time signatures by double click was working well enough, but the same code is used to handle copy/paste of time signature. This copy/paste formerly happened to work soemtimes, depending on the value of an uninitiatized variable, but would crash in other situations in 2.0.2. Turns out my PR #2207 - already merged - fixed that crash, but also prevented the paste from working in the cases where it otherwiuse might have happened to.

My change here should fix this case to allow paste to work, and should also be safe for any other code paths that result in ChordRest::drop() being called to add a time signature.

wschweer added a commit that referenced this pull request Oct 27, 2015
@wschweer wschweer merged commit ba53a70 into musescore:master Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants