From 22e88cdc8c7ce68a7be264ae8f57d0c9f89a9417 Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 24 Jan 2005 21:58:23 +0000 Subject: [PATCH] fix -Tps to work as before --- lib/common/emit.c | 5 ++--- lib/common/output.c | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index afcdbc875..2974c0c41 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -729,6 +729,8 @@ void emit_init(GVC_t * gvc, graph_t * g) setup_layering(gvc, g); + setup_pagination(gvc, g); + gvrender_begin_job(gvc, Lib, Pages, X, Y, Z, x, y, GD_drawing(g)->dpi); } @@ -747,9 +749,6 @@ void emit_graph(GVC_t * gvc, graph_t * g, int flags) char *str, *colors; char *s, *url = NULL, *tooltip = NULL, *target = NULL; - /* FIXME - some of setup_pagination should be in emit_init() */ - setup_pagination(gvc, g); - #if 0 /* FIXME - apparently zoom is not set yet */ gvc->clip.UR.x = ROUND(gvc->focus.x + (gvc->width+1) / (gvc->zoom * 2.)); diff --git a/lib/common/output.c b/lib/common/output.c index a7b3df6b4..d248364a9 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -218,7 +218,9 @@ void dotneato_write_one(GVC_t * gvc, graph_t * g) } fflush(gvc->job->output_file); +#if 0 emit_deinit(gvc); +#endif } static FILE *file_select(char *str) -- 2.40.0