summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-25 17:01:11 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-10-25 17:01:11 (GMT)
commit89a49d4ae6caea1a0ec9695c9ae3b762463deb34 (patch)
tree36dbcf17153b8c55408f5ef9022e44a500aeccb6
parent889ed73e849a70568501d9ec83dd2526be221dea (diff)
downloadeeshow-89a49d4ae6caea1a0ec9695c9ae3b762463deb34.zip
eeshow-89a49d4ae6caea1a0ec9695c9ae3b762463deb34.tar.gz
eeshow-89a49d4ae6caea1a0ec9695c9ae3b762463deb34.tar.bz2
kicad/pl.h, pl-render.c (date_override): option override for sheet date
-rw-r--r--kicad/pl-render.c4
-rw-r--r--kicad/pl.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index e5d674b..7bd697d 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -35,6 +35,8 @@
bool suppress_page_layout = 0;
+const char *date_override = NULL;
+
/*
* Eeschema works in mil
@@ -88,7 +90,7 @@ static char *expand(const struct pl_ctx *pl, const char *s,
}
break;
case 'D': // date
- cx = sheet->date;
+ cx = date_override ? date_override : sheet->date;
break;
case 'F': // file name
cx = sheet->file;
diff --git a/kicad/pl.h b/kicad/pl.h
index 1581456..18750c4 100644
--- a/kicad/pl.h
+++ b/kicad/pl.h
@@ -25,6 +25,7 @@ struct pl_ctx;
extern bool suppress_page_layout;
+extern const char *date_override;
void pl_render(struct pl_ctx *pl, struct gfx *gfx,