From d14bc48846c9101797015225a02dd804081e9a34 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 8 Apr 2015 14:32:14 +0100 Subject: Fix windows builds of epub-doc.c Variables need to be defined at the top of blocks. --- source/html/epub-doc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c index eb8e657a..bd550e3d 100644 --- a/source/html/epub-doc.c +++ b/source/html/epub-doc.c @@ -88,10 +88,10 @@ epub_run_page(fz_context *ctx, fz_page *page_, fz_device *dev, const fz_matrix * epub_chapter *ch; fz_matrix local_ctm = *ctm; int n = page->number; + int count = 0; fz_pre_translate(&local_ctm, doc->page_margin[L], doc->page_margin[T]); - int count = 0; for (ch = doc->spine; ch; ch = ch->next) { int cn = ceilf(ch->box->h / doc->page_h); -- cgit v1.2.3