diff --git a/core/generator.cpp b/core/generator.cpp index 41beb92b7..33c79936f 100644 --- a/core/generator.cpp +++ b/core/generator.cpp @@ -229,7 +229,7 @@ void Generator::generatePixmap( PixmapRequest *request ) * We create the text page for every page that is visible to the * user, so he can use the text extraction tools without a delay. */ - if ( hasFeature( TextExtraction ) && !request->page()->hasTextPage() && canGenerateTextPage() ) { + if ( hasFeature( TextExtraction ) && !request->page()->hasTextPage() && canGenerateTextPage() && !d->m_closing ) { d->mTextPageReady = false; d->textPageGenerationThread()->startGeneration( request->page() ); }