Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
Windows / All Envrionments
Qt 4.5.2
-
a1fa0d50f9bebc7148cd21fa3c420d2ff0fe7d12
Description
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());
}