Export to PDF Fails when slashes in the part title and full score selected

• Jan 24, 2021 - 13:44
Reported version
3.6
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project

When Exporting PDFs of parts, parts with slashes in the title do not export - e.g - a part named "Keyboard / Conductor" or "Trumpet / Violin". This error has only occurred in 3.6 and was fine in 3.5.

How to reproduce error -
1) Load a musescore file with parts containing slashes (/) in the part name (attached file is from 3.5, just for reference).
2) Select the full score.
2) Click Export, then select all (or just the parts with slashes) and export the parts. Make sure parts are being exported to PDF.

Expected - parts export without error.
Actual Result - An Error Dialogue Box comes up with the message "Cannot Write Into [File Path]/[File Name].pdf

EDIT - Ran some more tests and this error does not happen when you select the parts containing the slashes and then export - it only had an issue with the full score selected. Weird.....
EDIT 2 - By Extention, this also applies to PNGs

Attachment Size
DEC NEW ORCH FIX 3.6 ADJUSTED.mscz 39.02 KB

Comments

Workaround No Yes

Workaround Discovered - click on each part individually, export and rename them individually. Works but is time consuming.

Status PR created fixed

Fixed in branch 3.x, commit b542650184

_Fix #316224: Export fails when part name contains slash

Fixed by using mscore->saveFilename(score->title()) instead of plain score->title()._

Fix version
3.6.1