Skip to content

Commit

Permalink
fix #23953
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Jun 19, 2014
1 parent 8aede97 commit a9e44cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ void Score::cmdAddTie()

startCmd();
foreach (Note* note, noteList) {
if(note->chord() && note->chord()->isGrace())
if (note->chord() && note->chord()->isGrace())
continue;
if (note->tieFor()) {
qDebug("cmdAddTie: note %p has already tie? noteFor: %p", note, note->tieFor());
Expand All @@ -898,7 +898,7 @@ void Score::cmdAddTie()
bool addFlag = _is.cr()->type() == ElementType::CHORD;
Note* n = addPitch(note->pitch(), addFlag);
if (n) {
// n is not necessarly next note if duration span over measure
// n is not necessarily next note if duration span over measure
Note* nnote = searchTieNote(note);
if (nnote) {
n->setLine(note->line());
Expand All @@ -910,6 +910,8 @@ void Score::cmdAddTie()
undoAddElement(tie);
nextInputPos(n->chord(), false);
}
else
qDebug("cmdAddTie: no next note?");
}
continue;
}
Expand Down
4 changes: 3 additions & 1 deletion mscore/scoreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2647,8 +2647,10 @@ void ScoreView::cmd(const QAction* a)
_score->cmdAddInterval(n, nl);
}
}
else if (cmd == "tie")
else if (cmd == "tie") {
_score->cmdAddTie();
moveCursor();
}
else if (cmd == "duplet")
cmdTuplet(2);
else if (cmd == "triplet")
Expand Down

0 comments on commit a9e44cb

Please sign in to comment.