summaryrefslogtreecommitdiff
path: root/source/html/epub-doc.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-04-07 14:27:48 +0200
committerRobin Watts <robin.watts@artifex.com>2015-04-07 13:35:07 +0100
commitb8eb55a488aa9dc6884e01b06e948faf1f83012d (patch)
treeafce0b2a0e4bdc375662d65628988257602da611 /source/html/epub-doc.c
parent743b839e42dc76906ba0be0ff0b3bcb132ac5922 (diff)
downloadmupdf-b8eb55a488aa9dc6884e01b06e948faf1f83012d.tar.xz
Trigger default layout in fz_document layer.
Trigger the default layout when needed, but only if no manual layout has been done. This avoids doing a pointless double layout (once with default when loading the document, then with the manual layout call with the desired layout options).
Diffstat (limited to 'source/html/epub-doc.c')
-rw-r--r--source/html/epub-doc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c
index 51eca0b9..9b518bd0 100644
--- a/source/html/epub-doc.c
+++ b/source/html/epub-doc.c
@@ -1,9 +1,5 @@
#include "mupdf/html.h"
-#define DEFW (450)
-#define DEFH (600)
-#define DEFEM (12)
-
typedef struct epub_document_s epub_document;
typedef struct epub_chapter_s epub_chapter;
typedef struct epub_page_s epub_page;
@@ -270,7 +266,6 @@ epub_init(fz_context *ctx, fz_archive *zip)
fz_try(ctx)
{
epub_parse_header(ctx, doc);
- epub_layout(ctx, (fz_document*)doc, DEFW, DEFH, DEFEM);
}
fz_catch(ctx)
{