summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias Kramm <kramm@quiss.org>2012-05-14 13:24:07 -0700
committerMatthias Kramm <kramm@quiss.org>2012-05-14 13:24:07 -0700
commit4126f6f9c3d4a3214249326a08662942a3b2615b (patch)
tree715bfd7089b1eb00cf8835b2ed4d05d06806f579 /lib
parentdbd8d190daeba054fb1f8977da57cfc1e53c721b (diff)
properly close links when going from page to pageHEADmaster
Diffstat (limited to 'lib')
-rw-r--r--lib/pdf/CharOutputDev.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/pdf/CharOutputDev.cc b/lib/pdf/CharOutputDev.cc
index e1d19b22..cd7ceffd 100644
--- a/lib/pdf/CharOutputDev.cc
+++ b/lib/pdf/CharOutputDev.cc
@@ -675,7 +675,13 @@ GBool CharOutputDev::needNonText()
void CharOutputDev::endPage()
{
msg("<verbose> endPage (GfxOutputDev)");
-
+
+ if(this->previous_link) {
+ if(device->setparameter) {
+ device->setparameter(device, "link", "");
+ }
+ }
+
if(this->links) {
kdtree_destroy(this->links);
this->links = 0;
@@ -688,6 +694,7 @@ void CharOutputDev::endPage()
l = last;
}
this->last_link = 0;
+ this->previous_link = 0;
}
static inline double sqr(double x) {return x*x;}