Skip to content

Commit

Permalink
fix #30951
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Aug 27, 2014
1 parent 9d8ace8 commit 98653d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mscore/editstaff.cpp
Expand Up @@ -241,12 +241,13 @@ void EditStaff::apply()
bool nhide = neverHide->isChecked();
bool ifEmpty = showIfEmpty->isChecked();
qreal scale = mag->value() / 100.0;

if (!(instrument == *part->instr()) || part->partName() != partName->text()) {

QString newPartName = partName->text().simplified();
if (!(instrument == *part->instr()) || part->partName() != newPartName) {
Interval v1 = instrument.transpose();
Interval v2 = part->instr()->transpose();

score->undo(new ChangePart(part, instrument, partName->text()));
score->undo(new ChangePart(part, instrument, newPartName));
emit instrumentChanged();

if (v1 != v2)
Expand Down

0 comments on commit 98653d1

Please sign in to comment.