[svg export] note head and stem apart on downstem notes

• Jul 28, 2016 - 10:31
Reported version
3.0
Type
Functional
Severity
S4 - Minor
Status
closed
Project

In exported svg the stems and noteheads are apart.

Attachment Size
Popcorn.svg 140.05 KB
Popcorn.mscz 11.94 KB

Comments

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.