Skip to content

Commit

Permalink
Fix #322759: Inputing Ottava Bassa via menu or shortcut shows it abov…
Browse files Browse the repository at this point in the history
…e staff

Duplicate of musescore#8515, resp. backport of musescore#8516
  • Loading branch information
Jojo-Schmitz committed Sep 2, 2021
1 parent 579be63 commit 815dfdf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,10 @@ void Score::cmdAddOttava(OttavaType type)
cr2 = cr1;
Ottava* ottava = new Ottava(this);
ottava->setOttavaType(type);
if (type == OttavaType::OTTAVA_8VB/* || type == OttavaType::OTTAVA_15MB || type == OttavaType::OTTAVA_22MB*/) {
ottava->setPlacement(Placement::BELOW);
ottava->styleChanged();
}
ottava->setTrack(cr1->track());
ottava->setTrack2(cr1->track());
ottava->setTick(cr1->tick());
Expand All @@ -1453,7 +1457,10 @@ void Score::cmdAddOttava(OttavaType type)

Ottava* ottava = new Ottava(this);
ottava->setOttavaType(type);

if (type == OttavaType::OTTAVA_8VB/* || type == OttavaType::OTTAVA_15MB || type == OttavaType::OTTAVA_22MB*/) {
ottava->setPlacement(Placement::BELOW);
ottava->styleChanged();
}
ottava->setTrack(cr1->track());
ottava->setTrack2(cr1->track());
ottava->setTick(cr1->tick());
Expand Down
1 change: 1 addition & 0 deletions mscore/menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,7 @@ PalettePanel* MuseScore::newLinesPalettePanel()
ottava = new Ottava(gscore);
ottava->setOttavaType(OttavaType::OTTAVA_22MB);
ottava->setLen(w);
ottava->setPlacement(Placement::BELOW);
ottava->styleChanged();
sp->append(ottava, QT_TRANSLATE_NOOP("Palette", "22ma bassa"));

Expand Down

0 comments on commit 815dfdf

Please sign in to comment.