summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-01 16:47:37 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-01 16:47:37 (GMT)
commitea2f833cfd21cc83d1d72a007f91bdd95d1c6ae4 (patch)
tree4873fcdadd0b4d2efbeedbc35fbed59064a8d36b /kicad
parent9ee3d030c7695af0a7752a2645a924ebdd5d5761 (diff)
downloadeeshow-ea2f833cfd21cc83d1d72a007f91bdd95d1c6ae4.zip
eeshow-ea2f833cfd21cc83d1d72a007f91bdd95d1c6ae4.tar.gz
eeshow-ea2f833cfd21cc83d1d72a007f91bdd95d1c6ae4.tar.bz2
kicad/pl-render.c (expand): expand %F (file name) and %P (path)
Diffstat (limited to 'kicad')
-rw-r--r--kicad/pl-render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index 392f643..aa3ee6c 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -80,7 +80,7 @@ static char *expand(const struct pl_ctx *pl, const char *s,
x = "%D";
break;
case 'F': // file name
- x = "%F";
+ x = sheet->file ? (char *) sheet->file : "";
break;
case 'K': // KiCad version
x = "%K";
@@ -93,7 +93,7 @@ static char *expand(const struct pl_ctx *pl, const char *s,
do_free = 1;
break;
case 'P': // sheet path
- x = "%P";
+ x = sheet->path ? (char *) sheet->path : "";
break;
case 'R': // revision
x = "%R";