]> granicus.if.org Git - graphviz/commitdiff
Fix for bug 2113: don't try to do pages if not supported.
authorerg <devnull@localhost>
Thu, 20 Jan 2011 21:17:42 +0000 (21:17 +0000)
committererg <devnull@localhost>
Thu, 20 Jan 2011 21:17:42 +0000 (21:17 +0000)
lib/common/emit.c

index a72f0b4a69691c57013b89dba3e56eb1099dc71c..5dd3221a79389bd9bf84a41214afe17b5932eaa1 100644 (file)
@@ -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 */