From 6ea5badeab79e05f370d1dffe72dfa9c43a62938 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 11 Mar 2007 12:05:48 +0000 Subject: [PATCH] don't try to start a text extraction thread if the generator does not extract text svn path=/trunk/playground/graphics/okular/; revision=641458 --- core/generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/generator.cpp b/core/generator.cpp index 5003a9204..30fcd6a4a 100644 --- a/core/generator.cpp +++ b/core/generator.cpp @@ -149,7 +149,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 ( !request->page()->hasTextPage() && canGenerateTextPage() ) { + if ( hasFeature( TextExtraction ) && !request->page()->hasTextPage() && canGenerateTextPage() ) { d->mTextPageReady = false; d->createTextPageGenerationThread(); d->mTextPageGenerationThread->startGeneration( request->page() );