summaryrefslogtreecommitdiff
path: root/source/html/epub-doc.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-04-08 14:32:14 +0100
committerRobin Watts <robin.watts@artifex.com>2015-04-08 14:32:14 +0100
commitd14bc48846c9101797015225a02dd804081e9a34 (patch)
tree44bb08349fb95972092f9c49fd019b78d0db3367 /source/html/epub-doc.c
parent00a84fee4e925093614d28d7a1c5dbbe89495cc4 (diff)
downloadmupdf-d14bc48846c9101797015225a02dd804081e9a34.tar.xz
Fix windows builds of epub-doc.c
Variables need to be defined at the top of blocks.
Diffstat (limited to 'source/html/epub-doc.c')
-rw-r--r--source/html/epub-doc.c2
1 files changed, 1 insertions, 1 deletions
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);