summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0dd9e81)
raw | patch | inline | side by side (parent: 0dd9e81)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 4 Apr 2003 20:51:21 +0000 (20:51 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 4 Apr 2003 20:51:21 +0000 (20:51 +0000) |
pdf_buffer is not initialized, making bad PDF sometimes (I found a case where is_stream was
!= 0 for the font initialization). -- lhoudard@netcourrier.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@198 a5681a0c-68f1-0310-ab6d-d61299d08faa
!= 0 for the font initialization). -- lhoudard@netcourrier.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@198 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_gfx.c | patch | blob | history |
diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c
index bc57a9039a8379a05a8c10bc2a9996bec5f806c0..28007cdee76feb1e327a6cccfb8b18b36b838e86 100644 (file)
--- a/src/rrd_gfx.c
+++ b/src/rrd_gfx.c
pdf_init_buffer(state, buf);
buf->id = ++state->last_obj_id;
buf->is_obj = 1;
+ buf->is_stream = 0;
}
static void pdf_init_dict(pdf_state *state, pdf_buffer *buf)
pdf_init_dict(state, &state->pages_obj);
pdf_init_dict(state, &state->page1_obj);
pdf_init_dict(state, &state->fontsdict_obj);
- state->graph_stream.is_stream = 1;
pdf_create_fonts(state);
if (state->has_failed)
return;
/* make stream last object in file */
pdf_init_object(state, &state->graph_stream);
+ state->graph_stream.is_stream = 1;
}
static void pdf_setup_document(pdf_state *state)