Merge pull request #3627 from mattmcclinch/113846-shadow-note

fix #113846: Regression—shadow note appears in note entry with keyboard or piano keyboard
This commit is contained in:
Nicolas Froment 2018-04-18 11:00:37 +02:00 committed by GitHub
commit 0603c9d393
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -358,6 +358,7 @@ void ScoreView::mousePressEvent(QMouseEvent* ev)
_score->endCmd();
if (_score->inputState().cr())
adjustCanvasPosition(_score->inputState().cr(), false);
shadowNote->setVisible(false);
break;
case ViewState::EDIT: {

View file

@ -1688,6 +1688,7 @@ void ScoreView::cmd(const char* s)
{
const QByteArray cmd(s);
shadowNote->setVisible(false);
if (MScore::debugMode)
qDebug("ScoreView::cmd <%s>", s);
@ -2916,9 +2917,8 @@ void ScoreView::adjustCanvasPosition(const Element* el, bool playBack, int staff
showRect.setHeight(r.height());
}
}
if (mscore->state() & ScoreState::STATE_NOTE_ENTRY) {
if (shadowNote->visible())
setShadowNote(p);
}
if (r.contains(showRect))
return;
@ -4341,7 +4341,8 @@ void ScoreView::updateContinuousPanel()
void ScoreView::updateShadowNotes()
{
setShadowNote(shadowNote->pos());
if (shadowNote->visible())
setShadowNote(shadowNote->pos());
}
//---------------------------------------------------------