From: erg Date: Thu, 20 Jan 2011 21:17:42 +0000 (+0000) Subject: Fix for bug 2113: don't try to do pages if not supported. X-Git-Tag: LAST_LIBGRAPH~32^2~1098 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1941e40743b5b7fbf8687ddce9aaec5d734fec35;p=graphviz Fix for bug 2113: don't try to do pages if not supported. --- diff --git a/lib/common/emit.c b/lib/common/emit.c index a72f0b4a6..5dd3221a7 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -693,7 +693,7 @@ static void init_job_pagination(GVJ_t * job, graph_t *g) margin = job->margin; /* determine pagination */ - if (gvc->graph_sets_pageSize) { + if (gvc->graph_sets_pageSize && (job->flags & GVDEVICE_DOES_PAGES)) { /* page was set by user */ /* determine size of page for image */