diff --git a/src/3rd_party/pdftextextraction b/src/3rd_party/pdftextextraction index 06b8cfc97..786836632 160000 --- a/src/3rd_party/pdftextextraction +++ b/src/3rd_party/pdftextextraction @@ -1 +1 @@ -Subproject commit 06b8cfc9718f4366ff73f6cd02f446438a19445f +Subproject commit 78683663212c6c7004fbeafdfafdd0dac993cc24 diff --git a/src/corelib/business_layer/import/abstract_document_importer.cpp b/src/corelib/business_layer/import/abstract_document_importer.cpp index 0ea294f55..0ef1bf80d 100644 --- a/src/corelib/business_layer/import/abstract_document_importer.cpp +++ b/src/corelib/business_layer/import/abstract_document_importer.cpp @@ -420,7 +420,7 @@ QString AbstractDocumentImporter::parseDocument(const ImportOptions& _options, writer.writeStartElement(xml::kFormatsTag); for (const auto& range : currentBlock.textFormats()) { if (range.format.fontWeight() != QFont::Normal || range.format.fontItalic() - || range.format.fontUnderline()) { + || range.format.fontUnderline() || range.format.fontStrikeOut()) { writer.writeEmptyElement(xml::kFormatTag); writer.writeAttribute(xml::kFromAttribute, QString::number(range.start)); @@ -429,13 +429,13 @@ QString AbstractDocumentImporter::parseDocument(const ImportOptions& _options, if (range.format.fontWeight() != QFont::Normal) { writer.writeAttribute(xml::kBoldAttribute, "true"); } - if (range.format.boolProperty(QTextFormat::FontItalic)) { + if (range.format.fontItalic()) { writer.writeAttribute(xml::kItalicAttribute, "true"); } - if (range.format.boolProperty(QTextFormat::TextUnderlineStyle)) { + if (range.format.fontUnderline()) { writer.writeAttribute(xml::kUnderlineAttribute, "true"); } - if (range.format.boolProperty(QTextFormat::FontStrikeOut)) { + if (range.format.fontStrikeOut()) { writer.writeAttribute(xml::kStrikethroughAttribute, "true"); } }