Skip to content

Commit

Permalink
Merge pull request #3802 from MarcSabatella/274071-fingering-tab
Browse files Browse the repository at this point in the history
fix #274071: add fingering to non-pitched staves
  • Loading branch information
lasconic committed Jul 12, 2018
2 parents e9b292d + 55a32c9 commit 57672ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mscore/scoreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3813,8 +3813,11 @@ void ScoreView::cmdAddText(TEXT type)
case TEXT::FINGERING:
{
Element* e = _score->getSelectedElement();
if (!e || !e->isNote()
|| !e->staff()->isPitchedStaff(e->tick()))
if (!e || !e->isNote())
break;
bool isTablature = e->staff()->isTabStaff(e->tick());
bool tabFingering = e->staff()->staffType(e->tick())->showTabFingering();
if (isTablature && !tabFingering)
break;
s = new Fingering(_score);
s->setTrack(e->track());
Expand Down

0 comments on commit 57672ca

Please sign in to comment.