fix #286530: scaling of dot, lines, and more in parts

This commit is contained in:
Marc Sabatella 2019-04-01 15:04:50 -06:00
parent a9d043ae3f
commit b8d0338fcd
3 changed files with 12 additions and 2 deletions

View file

@ -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();
@ -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();

View file

@ -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);
}

View file

@ -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;
}