summaryrefslogtreecommitdiff
path: root/kicad/pl-render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-19 02:54:39 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-19 02:55:41 -0300
commitae0f907822865a3d55e9534e5da1828dd0a95bb9 (patch)
tree896742cc75b9025b9a0701836b7e5ad56d0497ed /kicad/pl-render.c
parent269b377f0066130ef209d653dbf3787800e77f24 (diff)
downloadeeshow-ae0f907822865a3d55e9534e5da1828dd0a95bb9.tar.gz
eeshow-ae0f907822865a3d55e9534e5da1828dd0a95bb9.tar.bz2
eeshow-ae0f907822865a3d55e9534e5da1828dd0a95bb9.zip
kicad/: support remaining header fields (date, revision, company)
Diffstat (limited to 'kicad/pl-render.c')
-rw-r--r--kicad/pl-render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index da628b9..c5cdfe7 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -87,7 +87,7 @@ static char *expand(const struct pl_ctx *pl, const char *s,
}
break;
case 'D': // date
- cx = "%D";
+ cx = sheet->date;
break;
case 'F': // file name
cx = sheet->file;
@@ -105,7 +105,7 @@ static char *expand(const struct pl_ctx *pl, const char *s,
cx = sheet->path;
break;
case 'R': // revision
- cx = "%R";
+ cx = sheet->rev;
break;
case 'S': // sheet number
n = 1;
@@ -118,7 +118,7 @@ static char *expand(const struct pl_ctx *pl, const char *s,
cx = sheet->title;
break;
case 'Y': // company name
- cx = "%Y";
+ cx = sheet->comp;
break;
case 'Z': // paper format
cx = sheet->size;