summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-03-12 11:10:50 +0000
committerChris Liddell <chris.liddell@artifex.com>2022-03-14 13:31:38 +0000
commit600726eac7a5a58ae96873166e6a37e3afa040fa (patch)
tree789258d9f2b9555510ee3619fba380e954ee0896
parent7c251acc4b59f40f42dbf95c82bd415709704bc0 (diff)
downloadghostpdl-600726eac7a5a58ae96873166e6a37e3afa040fa.tar.gz
Fix a couple of "type" related typos.
-rw-r--r--pdf/pdf_cmap.c2
-rw-r--r--pdf/pdf_colour.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_cmap.c b/pdf/pdf_cmap.c
index a6756b7ea..d7198e242 100644
--- a/pdf/pdf_cmap.c
+++ b/pdf/pdf_cmap.c
@@ -603,7 +603,7 @@ static int cmap_def_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte *buf
pdficmap->cmaptype = s->cur[0].val.i;
}
else {
- pdficmap->type = 1;
+ pdficmap->cmaptype = 1;
}
}
else if (!memcmp(s->cur[-1].val.name, CMAP_NAME_AND_LEN("XUID"))) {
diff --git a/pdf/pdf_colour.h b/pdf/pdf_colour.h
index b4f47f441..263c3d9d9 100644
--- a/pdf/pdf_colour.h
+++ b/pdf/pdf_colour.h
@@ -27,7 +27,7 @@ static inline void pdfi_set_colourspace_name(pdf_context *ctx, gs_color_space *p
{
if (pcs->interpreter_data != NULL) {
pdf_obj *o = (pdf_obj *)(pcs->interpreter_data);
- if (n != NULL && o->type == PDF_NAME) {
+ if (o != NULL && o->type == PDF_NAME) {
pdfi_countdown(o);
pcs->interpreter_data = NULL;
}