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

Fix exporting PNG or SVG files with multiple pages #18377

Conversation

cbjeukendrup
Copy link
Contributor

Resolves: #18369

🤦

return excerpt->notation() == notation;
});

if (it == potentialExcerpts.cend()) {
return notations.front()->elements()->pages().size();
return notations.front()->elements()->pages().size() == 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why this didn't lead to a compiler warning, returning a size_t where a bool is wanted

@DmitryArefiev
Copy link
Contributor

@cbjeukendrup It looks good now, but I found a case where it still happens: if to switch score to Continuous view (horizontal/vertical)

bandicam.2023-07-04.14-58-24-232.mp4

@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Jul 4, 2023

Shouldn't the export always temporarily switch to page view? IIRC that is what Mu3 did

Edit: ah, it does that already, just not when counting pages

@cbjeukendrup cbjeukendrup force-pushed the export_pngsvg_fix_filename_pagenumber branch from 53cbd92 to c4add76 Compare July 4, 2023 12:53
@cbjeukendrup
Copy link
Contributor Author

@DmitryArefiev That should be better now!

@DmitryArefiev
Copy link
Contributor

@cbjeukendrup Yes, looks good now!

Tested #18369 on Win10, Mac13, LinuxUbuntu 22.04 - FIXED

@RomanPudashkin RomanPudashkin merged commit 4012e0a into musescore:master Jul 4, 2023
11 checks passed
@cbjeukendrup cbjeukendrup deleted the export_pngsvg_fix_filename_pagenumber branch July 4, 2023 15:06
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.

PNG/SVG export creates only one page of score (last page)
4 participants