summaryrefslogtreecommitdiff
path: root/kicad/pl-render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-08 00:52:30 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-08 00:55:21 -0300
commit9b22ef7b4c58d36ae0ea01847323a691d7a7e192 (patch)
tree5d116fdb70ed3580a87f84f096cfd05347c24e0f /kicad/pl-render.c
parent57a490584151ecf75ce1273ffd6e9413e3b85835 (diff)
downloadeeshow-9b22ef7b4c58d36ae0ea01847323a691d7a7e192.tar.gz
eeshow-9b22ef7b4c58d36ae0ea01847323a691d7a7e192.tar.bz2
eeshow-9b22ef7b4c58d36ae0ea01847323a691d7a7e192.zip
kicad/: support page layout options page1only and notonpage1
Diffstat (limited to 'kicad/pl-render.c')
-rw-r--r--kicad/pl-render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index 8f4b940..592ced4 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -251,5 +251,7 @@ void pl_render(struct pl_ctx *pl, struct gfx *gfx, const struct sheet *sheets,
return;
for (obj = pl->objs; obj; obj = obj->next)
for (i = 0; i != obj->repeat; i++)
- render_obj(pl, obj, gfx, i, sheets, sheet);
+ if (obj->pc == pc_none ||
+ (obj->pc == pc_only_one) == (sheets == sheet))
+ render_obj(pl, obj, gfx, i, sheets, sheet);
}