[svg export] note head and stem apart on downstem notes
In exported svg the stems and noteheads are apart.
Attachment | Size |
---|---|
Popcorn.svg | 140.05 KB |
Popcorn.mscz | 11.94 KB |
In exported svg the stems and noteheads are apart.
Attachment | Size |
---|---|
Popcorn.svg | 140.05 KB |
Popcorn.mscz | 11.94 KB |
Comments
Already reported and fixed.
See #107081: SVG export leaves space between stems and heads
This bug was created by my last PR which fixed stuff for Tablature.
The problem is that 1227 / 1000 = 1, not 1.227 in Qt. I have to write the code like this:
1227 / 1000.0, if I want it to equal 1.227
So I will add the .0 to two lines of code and post a PR shortly.
Sorry for the oversight.
Here is the PR: https://github.com/musescore/MuseScore/pull/2758
1227 / 1000 = 1, not 1.227 in Qt
That's not just Qt, that's the case in C++ (and in plain old C).
1227 and 1000 are both integers, so the result of the operation will be an integer as well. Making one of them a float will result in the other one being promoted to match and the end result being a float as well.
Strictly speaking only the decimal point is required, (
1227 / 1000.
), but adding the trailing zero makes it more readable imo.Fixed in branch master, commit 8d0c3802a4
Fix #119721
rounding error in svggenerator.cpp fixed
Fixed in branch master, commit aeddd33164
Merge pull request #2758 from sidewayss/master
Fix #119721: Rounding error in svggenerator.cpp fixed
Fixed in branch 2.0.4, commit 0d4a79a8a5
Fix #119721
rounding error in svggenerator.cpp fixed
[accidentally posted on wrong issue]
Automatically closed -- issue fixed for 2 weeks with no activity.