From c42dac496e0994c4253eb50ce67ceaec864ed379 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 6 Feb 2013 19:06:45 +0000 Subject: Fix forgetting to open fz_output for xml output. --- apps/mudraw.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'apps') diff --git a/apps/mudraw.c b/apps/mudraw.c index e3d4590b..30ebda57 100644 --- a/apps/mudraw.c +++ b/apps/mudraw.c @@ -727,15 +727,15 @@ int main(int argc, char **argv) timing.minfilename = ""; timing.maxfilename = ""; - if (showtext) - { + if (showxml || showtext) out = fz_new_output_file(ctx, stdout); - sheet = fz_new_text_sheet(ctx); - } if (showxml || showtext == TEXT_XML) fz_printf(out, "\n"); + if (showtext) + sheet = fz_new_text_sheet(ctx); + if (showtext == TEXT_HTML) { fz_printf(out, "