Skip to content

Commit 26d700c

Browse files
wizofausdylan.nicholson
authored andcommitted
Fix pasting ties
(taken from musescore#8848, which has some git issues)
1 parent 95e45e8 commit 26d700c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/engraving/libmscore/note.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,7 @@ bool Note::acceptDrop(EditData& data) const
18631863
|| (type == ElementType::FRET_DIAGRAM)
18641864
|| (type == ElementType::FIGURED_BASS)
18651865
|| (type == ElementType::LYRICS)
1866-
|| e->isSpanner();
1866+
|| (type != ElementType::TIE && e->isSpanner());
18671867
}
18681868

18691869
//---------------------------------------------------------

src/engraving/libmscore/tie.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ bool TieSegment::edit(EditData& ed)
9898
{
9999
SlurTie* sl = tie();
100100

101-
if (ed.key == Qt::Key_X) {
101+
if (ed.key == Qt::Key_X && !ed.modifiers) {
102102
sl->setSlurDirection(sl->up() ? Direction::DOWN : Direction::UP);
103103
sl->layout();
104104
return true;
105105
}
106-
if (ed.key == Qt::Key_Home) {
106+
if (ed.key == Qt::Key_Home && !ed.modifiers) {
107107
ups(ed.curGrip).off = PointF();
108108
sl->layout();
109109
return true;

0 commit comments

Comments
 (0)