From bd0cd6b8ce9fe41897befc694299eff8de80ef07 Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Sun, 25 Aug 2002 13:21:28 +0000 Subject: [PATCH] cloning an input context wasn't updating last_input_context --- semantics.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/semantics.c b/semantics.c index d94e820..a95e633 100644 --- a/semantics.c +++ b/semantics.c @@ -170,6 +170,7 @@ static void input_clone (void) memcpy (new_input_context, last_input_context, sizeof (input_context_t)); new_input_context->image_count = 0; last_input_context->next = new_input_context; + last_input_context = new_input_context; } void input_set_file (char *name) @@ -527,6 +528,7 @@ void dump_input_tree (void) if (has_page_size) printf (" size %f, %f", page_size.width, page_size.height); printf ("\n"); + printf ("context: %08x\n", image->input_context); } }