diff options
Diffstat (limited to 'src/gui/text/qtextdocument.cpp')
-rw-r--r-- | src/gui/text/qtextdocument.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp index f066853792..a4ecbd157f 100644 --- a/src/gui/text/qtextdocument.cpp +++ b/src/gui/text/qtextdocument.cpp @@ -2308,7 +2308,7 @@ QString QTextHtmlExporter::toHtml(ExportMode mode) } html += QLatin1String(" font-weight:"); - html += QString::number(defaultCharFormat.fontWeight() * 8); + html += QString::number(defaultCharFormat.fontWeight()); html += QLatin1Char(';'); html += QLatin1String(" font-style:"); @@ -2421,7 +2421,7 @@ bool QTextHtmlExporter::emitCharFormatStyle(const QTextCharFormat &format) if (format.hasProperty(QTextFormat::FontWeight) && format.fontWeight() != defaultCharFormat.fontWeight()) { html += QLatin1String(" font-weight:"); - html += QString::number(format.fontWeight() * 8); + html += QString::number(format.fontWeight()); html += QLatin1Char(';'); attributesEmitted = true; } |