delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/07/16/06:00:58.2

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to
:references;
bh=5Y2807SI4LCUL76PxoIkR67826TYKvsDA9+TAw35pEo=;
b=uGDeqSGsEbFube2Ng/xu6+crljPJqW2Ag4o9N7Gpu/BLTZdnSmaiOFp6e6+Bot9PSn
8QRkYa6UD+eectahCXjSJEw6YyslyMRE8Nn6DGQZKtUXjqmjl+aRgYkvh/6Sc+dLR+hC
MErTOs9YXP6ZCPuLh2zE58kONsFu5BSSkVExwYvke8aMnWOkni7kjj0lt2hEcAzde22z
1XUuS+EaYcanLl/5G2Ufp6qsYTsKT8qvhZUTDs5A34n05rzDzGNMNUzVxGW/mGxC0VbC
cGH/Acr+RoSfvaEWgepu0xygbBXcbnrk0UsWDp4+KcKPYnALSj7z4J1e5EMF0e8uWCUp
Bt7w==
Sender: Russ Dill <russ DOT dill AT gmail DOT com>
From: Russ Dill <Russ DOT Dill AT asu DOT edu>
To: geda-user AT delorie DOT com
Cc: Russ Dill <Russ DOT Dill AT gmail DOT com>
Subject: [geda-user] [PATCH 1/2] Add PCB::skip-print attribute
Date: Mon, 16 Jul 2012 02:59:51 -0700
Message-Id: <1342432792-29260-2-git-send-email-Russ.Dill@asu.edu>
X-Mailer: git-send-email 1.7.10.4
In-Reply-To: <1342432792-29260-1-git-send-email-Russ.Dill@asu.edu>
References: <1342432792-29260-1-git-send-email-Russ DOT Dill AT asu DOT edu>
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

From: Russ Dill <Russ DOT Dill AT gmail DOT com>

Setting this attribute causes this layer not to be printed. This
comes in handy for the later PCB::merge attribute.

Signed-off-by: Russ Dill <Russ DOT Dill AT gmail DOT com>
---
 src/draw.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/draw.c b/src/draw.c
index 3738f6a..cc6b954 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -634,7 +634,8 @@ DrawEverything (const BoxType *drawn_area)
     {
       LayerType *l = LAYER_ON_STACK (i);
       int group = GetLayerGroupNumberByNumber (LayerStack[i]);
-      if (l->On && !do_group[group])
+      int skip = !gui->gui && AttributeGet (l, "PCB::skip-print") != NULL;
+      if (!skip && l->On && !do_group[group])
 	{
 	  do_group[group] = 1;
 	  drawn_groups[ngroups++] = group;
-- 
1.7.10.4

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019