-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
4.5.2
-
None
t4id: 261603
When trying to paint an CorelDraw generated vaild SVG image with QSvg the leading whitespaces of text-Items are skipped even xml:space="preserve" is globallly set in the svg-tag.
svg sample:
<svg xml:space="preserve" ...>
...
<text x="23.0529" y="150.829" class="fil3 fnt7"> in my house</text>
...
</svg>
My suggestion is to change the code in qsvghandler.cpp at line 3436 as follows:
if(xmlSpace.isNull()) { // This element has no xml:space attribute. // Inherit the whitespace-Mode from parent element if exists if (m_whitespaceMode.isEmpty()) m_whitespaceMode.push(QSvgText::Default); else m_whitespaceMode.push(m_whitespaceMode.top()); }