Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.10.1
-
None
Description
One of my users complained about missing part of an image. Debugging showed that the svg file is corrupted. Looking into file by plain text editor showed that the file contains invalid character "&" in description section. Replacing it with "&" fix the file and missing part repaired again. It seems like some editors try to open file in any cost where other refuse.
If it is not a bug and QSvgGenerator::setDescription should not escape a text it would be right to add a note about this in documentation.
It seems like QSvgGenerator::setTitle has similar issue.
Simply using QString::toHtmlEscaped() before setting description helped me.