summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-09 15:18:41 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-09 15:26:57 (GMT)
commit80ca4cd1d9d9a1b725fb7a6016f1035c3d3ffc92 (patch)
treeb776b53d79422d226c535f76d51bbd440e6e6f9a /src/svg
parentebb1162f54a29baeccb71d1e283146892629518f (diff)
downloadQt-80ca4cd1d9d9a1b725fb7a6016f1035c3d3ffc92.zip
Qt-80ca4cd1d9d9a1b725fb7a6016f1035c3d3ffc92.tar.gz
Qt-80ca4cd1d9d9a1b725fb7a6016f1035c3d3ffc92.tar.bz2
Fixed text positioning in SVGs when using SVG fonts.
Task-number: 260920 Reviewed-by: Trustme
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/qsvggraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvggraphics.cpp b/src/svg/qsvggraphics.cpp
index fda8ad1..6552b69 100644
--- a/src/svg/qsvggraphics.cpp
+++ b/src/svg/qsvggraphics.cpp
@@ -434,7 +434,7 @@ void QSvgText::draw(QPainter *p, QSvgExtraStates &states)
text.append(QLatin1Char('\n'));
text.append(paragraphs[i]);
}
- states.svgFont->draw(p, m_coord, text, p->font().pointSizeF() * scale, states.textAnchor);
+ states.svgFont->draw(p, m_coord * scale, text, p->font().pointSizeF() * scale, states.textAnchor);
} else {
for (int i = 0; i < paragraphs.size(); ++i) {
QTextLayout tl(paragraphs[i]);