diff --git a/generators/poppler/annots.cpp b/generators/poppler/annots.cpp index 3694188cd..f9bb81ebe 100644 --- a/generators/poppler/annots.cpp +++ b/generators/poppler/annots.cpp @@ -398,14 +398,7 @@ Okular::Annotation* createAnnotationFromPopplerAnnotation( Poppler::Annotation * { Okular::TextAnnotation * txtann = static_cast( annotation ); - if ( txtann->textType() == Okular::TextAnnotation::InPlace ) - { -#ifndef HAVE_POPPLER_0_20 - // Poppler before 0.20 returns the inplaceText in contents - txtann->setInplaceText( txtann->contents() ); -#endif - } - else if ( txtann->textType() == Okular::TextAnnotation::Linked ) + if ( txtann->textType() == Okular::TextAnnotation::Linked ) { Poppler::TextAnnotation * ppl_txtann = static_cast( ann );