Skip to content

Conversation

@wizofaus
Copy link
Contributor

Resolves: #8847

Some of my previous improvements had broken pasting ties and cutting via Ctrl+X

  • I signed CLA
  • I made sure the code in the PR follows the coding rules
  • I made sure the code compiles on my machine
  • I made sure there are no unnecessary changes in the code
  • I made sure the title of the PR reflects the core meaning of the issue you are solving
  • I made sure the commit message(s) contain a description and answer the question "Why do those changes fix that particular issue?" or "Why are those changes really necessary as improvements?"
  • I made sure the commit message title starts with "fix #424242:" if there is a related issue
  • I created the test (mtest, vtest, script test) to verify the changes I made

SlurTie* sl = tie();

if (ed.key == Qt::Key_X) {
if (ed.key == Qt::Key_X && !ed.modifiers) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I don't like this, I'd rather this be in response to the "flip placement" command which is normally mapped to "X", but this is a minimal fix.
Note that MU3 allows using, e.g. CTRL+ALT+X to flip a slur if CTRL+ALT+X isn't mapped to another command, but this isn't really expected/documented behaviour.

@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Aug 13, 2021

It contains multiple commits that don't belong here. Also fails the vtests?

return true;
}
return type != ElementType::SLUR && e->isSpanner();
return type != ElementType::SLUR && type != ElementType::TIE && e->isSpanner();
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz Aug 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same as my #8818, except for a comment:
// prevent 'hanging' slurs, avoid crash on tie
which I'd rather see here too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It contains multiple commits that don't belong here. Also fails the vtests?

Something's really odd with one of my local repos, that happens quite a lot.
The vtests is something random, and there's no obvious way to re-run (other than pushing more commits)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jojo-Schmitz

Your PR has been merged

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this diff doesn't show it...

Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz Aug 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something's really odd with one of my local repos, that happens quite a lot.

May need to clean your repo, git gc or some such?
Or you're not basing your PRs off of the latest master?

The vtests is something random, and there's no obvious way to re-run (other than pushing more commits)

git commit --amend; git push -f is what I use in such cases.

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
(taken from musescore#8848, which has some git issues)
@wizofaus wizofaus force-pushed the fix-pasting-ties branch 5 times, most recently from fb59a4d to 4e7daef Compare August 13, 2021 07:46
@wizofaus
Copy link
Contributor Author

Very odd, somehow all these changes already got merged...

@Jojo-Schmitz
Copy link
Contributor

Not odd at all, I added them to my PR ;-)

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 13, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
n->setTieBack(this->tieBack());
n->tieBack()->setEndNote(n);
this->setTieBack(nullptr);
}
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz Aug 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused now, is that the chage you really wanted?

If so: this has not been part of my (meanwhile merged) PR

It is however part of your #8825, and as such in the current code base. Should it get removed again, or is this just another tell-tale sign of a botched local repo?

wizofaus added a commit to wizofaus/MuseScore that referenced this pull request Aug 15, 2021
(taken from musescore#8848, which has some git issues)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 19, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 1, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 2, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 9, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 10, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 23, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 26, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Sep 29, 2021
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request May 12, 2022
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Mar 5, 2023
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
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.

[MU4 Issue] Pasting ties causes crash

3 participants