Skip to content

Commit

Permalink
fix #286530: scaling of dot, lines, and more in parts
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Apr 1, 2019
1 parent a9d043a commit b8d0338
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libmscore/excerpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void Excerpt::createExcerpt(Excerpt* excerpt)
score->setMetaTag("partName", partLabel);
}

// layout score
// initial layout of score
score->addLayoutFlags(LayoutFlag::FIX_PITCH_VELO);
score->doLayout();

Expand Down Expand Up @@ -273,7 +273,13 @@ void Excerpt::createExcerpt(Excerpt* excerpt)
}
}

// layout score
// update style values if spatium different for part
if (oscore->spatium() != score->spatium()) {
//score->spatiumChanged(oscore->spatium(), score->spatium());
score->styleChanged();
}

// second layout of score
score->setPlaylistDirty();
oscore->rebuildMidiMapping();
oscore->updateChannel();
Expand Down
2 changes: 2 additions & 0 deletions libmscore/note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2737,6 +2737,8 @@ void Note::setScore(Score* s)
_tieFor->setScore(s);
if (_accidental)
_accidental->setScore(s);
for (NoteDot* dot : _dots)
dot->setScore(s);
for (Element* el : _el)
el->setScore(s);
}
Expand Down
2 changes: 2 additions & 0 deletions libmscore/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ Score::Score(MasterScore* parent, bool forcePartStyle /* = true */)
style().set(Sid::dividerRight, false);
}
}
// update style values
_style.precomputeValues();
_synthesizerState = parent->_synthesizerState;
_mscVersion = parent->_mscVersion;
}
Expand Down

0 comments on commit b8d0338

Please sign in to comment.