summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextodfwriter.cpp
diff options
context:
space:
mode:
authorThomas Zander <thomas.zander@trolltech.com>2009-04-21 09:44:55 (GMT)
committerThomas Zander <thomas.zander@trolltech.com>2009-04-21 09:45:30 (GMT)
commite43b059ea932f3e21f592c74b1723b4c6cb5465f (patch)
treeae05b6ddfeaf166921e597a7ed27a282668538ab /src/gui/text/qtextodfwriter.cpp
parent5306337bf3ba9b770824ae889e31e991a4e03ade (diff)
downloadQt-e43b059ea932f3e21f592c74b1723b4c6cb5465f.zip
Qt-e43b059ea932f3e21f592c74b1723b4c6cb5465f.tar.gz
Qt-e43b059ea932f3e21f592c74b1723b4c6cb5465f.tar.bz2
Fixes: Incorrect textIndent() values in ODF
RevBy: Simon Hausmann Task: 247952 Details: Use pixelToPoint on the text-indent values.
Diffstat (limited to 'src/gui/text/qtextodfwriter.cpp')
-rw-r--r--src/gui/text/qtextodfwriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextodfwriter.cpp b/src/gui/text/qtextodfwriter.cpp
index 1edc3b8..75e89d2 100644
--- a/src/gui/text/qtextodfwriter.cpp
+++ b/src/gui/text/qtextodfwriter.cpp
@@ -477,7 +477,7 @@ void QTextOdfWriter::writeBlockFormat(QXmlStreamWriter &writer, QTextBlockFormat
if (format.hasProperty(QTextFormat::BlockRightMargin))
writer.writeAttribute(foNS, QString::fromLatin1("margin-right"), pixelToPoint(qMax(qreal(0.), format.rightMargin())) );
if (format.hasProperty(QTextFormat::TextIndent))
- writer.writeAttribute(foNS, QString::fromLatin1("text-indent"), QString::number(format.textIndent()));
+ writer.writeAttribute(foNS, QString::fromLatin1("text-indent"), pixelToPoint(format.textIndent()));
if (format.hasProperty(QTextFormat::PageBreakPolicy)) {
if (format.pageBreakPolicy() & QTextFormat::PageBreak_AlwaysBefore)
writer.writeAttribute(foNS, QString::fromLatin1("break-before"), QString::fromLatin1("page"));