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()));