[gs-commits] ghostpdl branch, pdfi, updated. jbig2dec-0.14-2463-g0c029d9
[email protected] (Nancy Durgin) Wed, 13 Nov 2019 23:42:13 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, pdfi has been updated
via 0c029d97751e73b3b91b7e0b5f7ae0107e3c36cb (commit)
from 75a1b103f1feed842c434c766c6748f304374661 (commit)
----------------------------------------------------------------------
commit 0c029d97751e73b3b91b7e0b5f7ae0107e3c36cb
Author: Nancy Durgin <[email protected]>
Date: Wed Nov 13 15:39:01 2019 -0800
Fix a bunch of shading bugs with reusable stream fix
Doing the sread_string_reusable() marks the stream reusable, which is
needed for rendering shadings because each stroke effectively starts at
the beginning of the stream (or something like that...). Previously the
stream was getting closed after the first use.
Anyway this fixes a bunch of samples, and doesn't seem to break anything.
Fixes:
tests_private/pdf/PDF_1.7_FTS/fts_08_0809.pdf
tests_private/pdf/PDF_1.7_FTS/fts_11_1102.pdf
tests_private/pdf/PDF_1.7_FTS/fts_11_1110.pdf
tests_private/pdf/PDF_1.7_FTS/fts_29_2904.pdf
tests_private/pdf/PDF_1.7_FTS/fts_31_3110.pdf
And several others.
diff --git a/pdf/pdf_file.c b/pdf/pdf_file.c
index 554058a..904d18f 100644
--- a/pdf/pdf_file.c
+++ b/pdf/pdf_file.c
@@ -1009,7 +1009,7 @@ int pdfi_open_memory_stream_from_stream(pdf_context *ctx, unsigned int size, byt
return code;
}
- sread_string(new_stream, *Buffer, size);
+ sread_string_reusable(new_stream, *Buffer, size);
code = pdfi_alloc_stream(ctx, new_stream, source->s, new_pdf_stream);
if (code < 0) {
Summary of changes:
pdf/pdf_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)