Fret diagram: strings with no X or O display as ? on Linux

• Dec 12, 2019 - 21:07
Reported version
3.3
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project

Linux only, apparently, and maybe not all Linux distrubtions. But fret diagrams are rendering in the palette and on the score with "?" characters on the strings with no X or O. That's because we are trying to draw a null character in FreeSans, and I guess it's not always defined. It worked in some previous release, not sure when it broke, but no matter, cause and possible fixes are obvious enough.


Comments

Status PR created fixed

Fixed in branch master, commit 2532e010f5

_fix #298471: strings with no X or O render as ? on Linux

Resolves: https://musescore.org/en/node/298471

Strings in fret diagrams with no X or O have no marker,
but in some Linux systems, we are rendering a "?" character,
as we are actuall trying to draw a null character in FreeSans,
and that is the result depending on the specific version
of the font, rendering libraries, etc.

Fix is simplky to skip the draw if the market is null.
This is the approach used in the Inspector,
and is also what was done prior to the big fret diagram refactor,_

Fix version
3.4.0