Zero font size in XML crashes 3.6 on import
I stumbled across this taking input from SmartScore. For reasons unknown (but I would think wrong) they generate text at times with zero font size.
When I compiled 3.6, this zero font siez causes an assert abort in textbase.h at line 91.
The actual posted 3.6RC compilation does not abort -- not sure if that's because some debug/asserts are turned off?
I am not quite sure what it should do -- maybe the assert/abort and production non-abort is right.
But here is a contrived very small example that will trigger it if interested; the version from Smartscore was very long. I just edit out the font-size zeros now in their xml. It doesn't do it all the time, but I have had it do it twice in the last 8 or so scores converted.
For what it is worth.
PS. Just to be clear -- this file was hand edited to include the font size of zero. It was produced from Musescore not Smartscore, so I could get a small file. This is not reporting a bug in producing XML with zero sizes, but importing.
|Demonstrate zero size font.musicxml