Fix crash

This commit is contained in:
jpirnay
2026-03-20 17:24:57 +01:00
parent 549e4e0d8d
commit f8a5400a04
@@ -402,9 +402,7 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char*
self->flushPartWordBuffer(); self->flushPartWordBuffer();
} }
if (self->currentTextBlock && !self->currentTextBlock->isEmpty()) { if (self->currentTextBlock && !self->currentTextBlock->isEmpty()) {
self->makePages(); self->startNewTextBlock(BlockStyle());
self->currentTextBlock.reset();
self->wordsExtractedInBlock = 0;
} }
// Create page for image - only break if image won't fit remaining space // Create page for image - only break if image won't fit remaining space