summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pcindxed.c1
-rw-r--r--pcl/pcpage.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/pcl/pcindxed.c b/pcl/pcindxed.c
index dff9185f7..292dfe803 100644
--- a/pcl/pcindxed.c
+++ b/pcl/pcindxed.c
@@ -878,7 +878,6 @@ pcl_cs_indexed_set_default_palette_entry(
/* get a unique copy of the indexed color space */
if ((code = unshare_indexed_cspace(ppindexed)) < 0)
return code;
- pindexed = *ppindexed;
return set_default_entries(*ppindexed, indx, 1, true);
}
diff --git a/pcl/pcpage.c b/pcl/pcpage.c
index 1159f7429..d2d06c8e0 100644
--- a/pcl/pcpage.c
+++ b/pcl/pcpage.c
@@ -571,6 +571,9 @@ pcl_end_page(
pcl_reset_overlay,
pcl_copy_after_overlay
);
+ if (code < 0)
+ return code;
+
pcs->overlay_enabled = true; /**** IN copy_after ****/
}
}