don't try to start a text extraction thread if the generator does not extract text

svn path=/trunk/playground/graphics/okular/; revision=641458
remotes/origin/KDE/4.0
Pino Toscano 19 years ago
parent 3716cc9eb3
commit 6ea5badeab
  1. 2
      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() );

Loading…
Cancel
Save