From 7fdf1a8c8834831e677157033b872076b79c2e4a Mon Sep 17 00:00:00 2001 From: John Ellson Date: Tue, 25 Sep 2012 10:09:14 -0400 Subject: [PATCH] fix crash with -Tx11 because X11 device doesn't support layers. --- lib/common/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index 11e2de9f8..e68446fc3 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -179,7 +179,7 @@ static void layerPagePrefix (GVJ_t* job, agxbuf* xb) { char buf[128]; /* large enough for 2 decimal 64-bit ints and "page_," */ - if (job->layerNum > 1) { + if (job->layerNum > 1 && (job->flags & GVDEVICE_DOES_LAYERS)) { agxbput (xb, job->gvc->layerIDs[job->layerNum]); agxbputc (xb, '_'); } -- 2.50.1