summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorStefan Kemper <stefan.kemper@artifex.com>2005-02-18 23:16:43 +0000
committerStefan Kemper <stefan.kemper@artifex.com>2005-02-18 23:16:43 +0000
commitc050bc2129308f592cb2f0e7958c55afdfc4a904 (patch)
tree9a3605cdf63e9610512d035151bda3ae1434bac1 /pcl
parent753f4741291931b8d06ea6036925ba063581a726 (diff)
Fixed last commit to only clear permanent patterns on Permanent reset.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2213 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pcuptrn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcl/pcuptrn.c b/pcl/pcuptrn.c
index 33050cf89..020f1ecbf 100644
--- a/pcl/pcuptrn.c
+++ b/pcl/pcuptrn.c
@@ -587,8 +587,8 @@ upattern_do_reset(
pcs->last_gl2_RF_indx = -1;
pcs->plast_gl2_uptrn = 0;
- } else if ((type & (pcl_reset_cold | pcl_reset_printer)) != 0) {
- delete_all_pcl_ptrns(true, false, pcs);
+ } else if ((type & (pcl_reset_cold | pcl_reset_printer | pcl_reset_permanent)) != 0) {
+ delete_all_pcl_ptrns(true, !(type & pcl_reset_permanent) , pcs);
pcl_pattern_clear_bi_patterns(pcs);
/* GL's IN command takes care of the GL patterns */
}