From a4a2f3f3aa29ec7fc84f9d782306b37bbe75025c Mon Sep 17 00:00:00 2001 From: Thomas Loimer Date: Sun, 31 Dec 2023 22:51:29 +0100 Subject: [PATCH] Fix exporting only active layers, ticket #163 --- src/u_print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/u_print.c b/src/u_print.c index c24c096..57921b3 100644 --- a/src/u_print.c +++ b/src/u_print.c @@ -861,10 +861,10 @@ build_layer_list(char *layers) } if (len < notlen && firstyes != -1) { /* use list of layers TO print */ - sprintf(layers," -D +%s ",list); + sprintf(layers, "+%s", list); } else if (firstno != -1){ /* use list of layers to NOT print */ - sprintf(layers," -D -%s ",notlist); + sprintf(layers, "-%s", notlist); } } -- 2.39.2