aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_Count.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/Pl_Count.cc')
-rw-r--r--libqpdf/Pl_Count.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/Pl_Count.cc b/libqpdf/Pl_Count.cc
index 8077092a..c35619b8 100644
--- a/libqpdf/Pl_Count.cc
+++ b/libqpdf/Pl_Count.cc
@@ -27,8 +27,8 @@ Pl_Count::write(unsigned char* buf, size_t len)
if (len)
{
this->m->count += QIntC::to_offset(len);
- getNext()->write(buf, len);
this->m->last_char = buf[len - 1];
+ getNext()->write(buf, len);
}
}