Skip to content

Commit

Permalink
fix #275588: Set alignment of instrument name to the right
Browse files Browse the repository at this point in the history
Set alignment of instrument name to the right during building InstrumentName object.
  • Loading branch information
handrok committed Sep 6, 2018
1 parent 8035689 commit 2a991f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion libmscore/iname.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ InstrumentName::InstrumentName(Score* s)
: TextBase(s, ElementFlag::NOTHING | ElementFlag::NOT_SELECTABLE)
{
setInstrumentNameType(InstrumentNameType::SHORT);
setAlign(Align::RIGHT);
}

//---------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions libmscore/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ void System::setInstrumentNames(bool longName)
iname->setTrack(staffIdx * VOICES);
iname->setInstrumentNameType(longName ? InstrumentNameType::LONG : InstrumentNameType::SHORT);
iname->setLayoutPos(sn.pos());
iname->setProperty(Pid::ALIGN, int(Align::RIGHT));
score()->addElement(iname);
}
iname->setXmlText(sn.name());
Expand Down

0 comments on commit 2a991f2

Please sign in to comment.