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
  • Loading branch information
Jojo-Schmitz authored and igorkorsukov committed Jul 28, 2021
1 parent 1c0b24c commit 514853b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/engraving/libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,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 All @@ -1890,7 +1894,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 src/palette/internal/palette/palettecreator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,7 @@ PalettePanel* PaletteCreator::newLinesPalettePanel()

ottava = makeElement<Ottava>(gscore);
ottava->setOttavaType(OttavaType::OTTAVA_22MB);
ottava->setPlacement(Placement::BELOW);
ottava->setLen(w);
ottava->styleChanged();
sp->append(ottava, QT_TRANSLATE_NOOP("palette", "22ma bassa"));
Expand Down

0 comments on commit 514853b

Please sign in to comment.