gui: PreviewGeneratorOdt: Adjust for DocumentProcessResult

This commit is contained in:
Albert S. 2023-05-14 14:28:11 +02:00
والد 7c30124743
کامیت 02dd7b64b5

مشاهده پرونده

@ -24,7 +24,7 @@ QSharedPointer<PreviewResult> PreviewGeneratorOdt::generate(RenderConfig config,
throw LooqsGeneralException("Error while reading content.xml of " + documentPath);
}
TagStripperProcessor tsp;
QString content = tsp.process(entireContent).constFirst().content;
QString content = tsp.process(entireContent).pages.constFirst().content;
PreviewGeneratorPlainText plainTextGenerator;
result->setText(plainTextGenerator.generatePreviewText(content, config, info.fileName()));