Skip to content

Commit

Permalink
Merge pull request #4858 from MarcSabatella/286530-scale-dot
Browse files Browse the repository at this point in the history
fix #286530: scaling of dot, lines, and more in parts
  • Loading branch information
anatoly-os committed Apr 10, 2019
2 parents b2fb29a + b8d0338 commit 9fb5da2
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 @@ -215,7 +215,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 @@ -272,7 +272,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 9fb5da2

Please sign in to comment.