musescore / musescore/MuseScore

svg export changes superposition order of elements

Open
#18,226 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SVG
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Describe the bug
When exporting to svg some elements that should show at the back of the staff are shown on top of it. Exporting to pdf and png is correct

To Reproduce
Steps to reproduce the behavior:

Open the attached score
Click on 'export' > svg
Chopin Vals op. 69 2 melodía acompañada adaptación dislexia.mscz.zip

Expected behavior
File is exported as a copy of the score in svg

Screenshots
Correct highlighting in MS
Highlighting blocks staff lines

MuseScore Version
OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.2.0-231780315, revision: github-musescore-musescore-1614004

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by opening the attached Chopin score and reproducing the problem through Export > SVG, comparing the result with the correct PDF and PNG exports. Done means the SVG preserves the score's element superposition order, so objects that belong behind the staff no longer appear on top of it.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.