From 02dd7b64b505c130fc17847ebc085ff55f0150b4 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 14 May 2023 14:28:11 +0200 Subject: [PATCH] gui: PreviewGeneratorOdt: Adjust for DocumentProcessResult --- gui/previewgeneratorodt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/previewgeneratorodt.cpp b/gui/previewgeneratorodt.cpp index bc3d035..7ecc36c 100644 --- a/gui/previewgeneratorodt.cpp +++ b/gui/previewgeneratorodt.cpp @@ -24,7 +24,7 @@ QSharedPointer 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()));