Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace handling of current scoreDef in Doc #3518

Merged
merged 8 commits into from
Sep 25, 2023

Conversation

brdvd
Copy link
Contributor

@brdvd brdvd commented Sep 20, 2023

This PR replaces the caching of the current scoreDef in the document during functor processing. The disadvantages of this were briefly discussed in #2672 .

  • We now store the list of visible scores in the document. This list is calculated at the begin of PrepareData (or earlier) and thus available during layout.
  • The corresponding score or scoreDef for a tree node can then be determined via tree order comparison, see Doc::GetCorrespondingScore.
  • Additionally, we autogenerate headers and footers for all visible scores. In particular, mdiv-001 from the test suite now displays visible headers and footers with default options.

@lpugin
Copy link
Contributor

lpugin commented Sep 21, 2023

Looks good, thanks

@lpugin lpugin merged commit ae7c305 into rism-digital:develop Sep 25, 2023
5 checks passed
@brdvd brdvd deleted the develop-currentScoreDef branch September 26, 2023 13:52
@brdvd brdvd restored the develop-currentScoreDef branch September 28, 2023 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants