Skip to content

Commit b911013

Browse files
wizofausJojo-Schmitz
authored andcommitted
Fix pasting ties
as taken from musescore#8848, which has some git issues, and backport of musescore#8818, part 2
1 parent f2375d0 commit b911013

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libmscore/note.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ bool Note::acceptDrop(EditData& data) const
16991699
|| (type == ElementType::FRET_DIAGRAM)
17001700
|| (type == ElementType::FIGURED_BASS)
17011701
|| (type == ElementType::LYRICS)
1702-
|| e->isSpanner());
1702+
|| (type != ElementType::TIE && e->isSpanner()));
17031703
}
17041704

17051705
//---------------------------------------------------------

libmscore/tie.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ bool TieSegment::edit(EditData& ed)
7777
{
7878
SlurTie* sl = tie();
7979

80-
if (ed.key == Qt::Key_X) {
80+
if (ed.key == Qt::Key_X && !ed.modifiers) {
8181
sl->setSlurDirection(sl->up() ? Direction::DOWN : Direction::UP);
8282
sl->layout();
8383
return true;
8484
}
85-
if (ed.key == Qt::Key_Home) {
85+
if (ed.key == Qt::Key_Home && !ed.modifiers) {
8686
ups(ed.curGrip).off = QPointF();
8787
sl->layout();
8888
return true;

0 commit comments

Comments
 (0)