summaryrefslogtreecommitdiff
path: root/lib/pdf
diff options
context:
space:
mode:
authorMatthias Kramm <kramm@quiss.org>2010-10-16 11:25:00 -0700
committerMatthias Kramm <kramm@quiss.org>2010-10-16 11:25:00 -0700
commit3a9772c853adfc2a63d7974924ff0d3aa5bbe804 (patch)
treed8737e5d29d9d7be75863e33b036d0d8365157dd /lib/pdf
parent6f23772a7a6bb13030da277ded7cfe11b361b0c9 (diff)
fixed valgrind warnings
Diffstat (limited to 'lib/pdf')
-rw-r--r--lib/pdf/CharOutputDev.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pdf/CharOutputDev.cc b/lib/pdf/CharOutputDev.cc
index 6f2ecc90..b7cf5916 100644
--- a/lib/pdf/CharOutputDev.cc
+++ b/lib/pdf/CharOutputDev.cc
@@ -912,6 +912,10 @@ void CharOutputDev::beginPage(GfxState *state, int pageNum)
{
this->currentpage = pageNum;
this->last_char_was_space = 1;
+ this->last_char_y = 0;
+ this->last_char_y_fontsize = 0;
+ this->last_ascent = 0;
+ this->last_descent = 0;
}
void GFXLink::draw(CharOutputDev*out, gfxdevice_t*dev)