mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
Fix fix-qdf for empty streams
This commit is contained in:
parent
802de87c30
commit
0dea276997
@ -1,3 +1,8 @@
|
|||||||
|
2020-10-23 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
|
* Bug fix: fix-qdf: properly handle empty streams with ignore
|
||||||
|
newline.
|
||||||
|
|
||||||
2020-10-22 Jay Berkenbilt <ejb@ql.org>
|
2020-10-22 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
* Fix loop detection problem when traversing page thumbnails
|
* Fix loop detection problem when traversing page thumbnails
|
||||||
|
@ -294,7 +294,10 @@ QdfFixer::processLines(std::list<std::string>& lines)
|
|||||||
{
|
{
|
||||||
if (matches(re_ignore_newline))
|
if (matches(re_ignore_newline))
|
||||||
{
|
{
|
||||||
--stream_length;
|
if (stream_length > 0)
|
||||||
|
{
|
||||||
|
--stream_length;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (matches(re_n_0_obj))
|
else if (matches(re_n_0_obj))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user