Commit a768dc69 authored by Fabio D'Urso's avatar Fabio D'Urso

Remove z-order annotation hack in poppler generator

It was wrong: it didn't make poppler and okular's z-order match. Quite
the opposite: it actually reversed it.
parent 2e847d2f
......@@ -50,8 +50,6 @@
#include <config-okular-poppler.h>
#include <algorithm>
#ifdef HAVE_POPPLER_0_20
# include <poppler-media.h>
......@@ -1479,9 +1477,6 @@ void PDFGenerator::addAnnotations( Poppler::Page * popplerPage, Okular::Page * p
QList<Poppler::Annotation*> popplerAnnotations = popplerPage->annotations();
// Reverse the list so that the z-order of Poppler/PDF matches the z-order used by Okular
std::reverse(popplerAnnotations.begin(), popplerAnnotations.end());
foreach(Poppler::Annotation *a, popplerAnnotations)
bool doDelete = true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment