diff options
author | Thomas Zander <thomas.zander@trolltech.com> | 2009-04-21 09:44:55 (GMT) |
---|---|---|
committer | Thomas Zander <thomas.zander@trolltech.com> | 2009-04-21 09:45:30 (GMT) |
commit | e43b059ea932f3e21f592c74b1723b4c6cb5465f (patch) | |
tree | ae05b6ddfeaf166921e597a7ed27a282668538ab /src/gui/text | |
parent | 5306337bf3ba9b770824ae889e31e991a4e03ade (diff) | |
download | Qt-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')
-rw-r--r-- | src/gui/text/qtextodfwriter.cpp | 2 |
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")); |