summaryrefslogtreecommitdiff
path: root/pcl/pcursor.c
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>1999-05-18 02:21:43 +0000
committerHenry Stiles <henry.stiles@artifex.com>1999-05-18 02:21:43 +0000
commit61c98aed61b89c19b3efc107970d8ec0fa4de10b (patch)
treeeb51f3d87ba3fd74d0296f0e0882a3bcc6d02253 /pcl/pcursor.c
parentac16e8181b09ece1428b732b9f275ee95ba1153a (diff)
fixes static removal regression. The pcl cap can reside in the pcl
state but is not really part of the modified print environment. After macro invocation, copy back the cap to simulate this behavior. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@847 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pcl/pcursor.c')
-rw-r--r--pcl/pcursor.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/pcl/pcursor.c b/pcl/pcursor.c
index 721adb424..19c1ca1cc 100644
--- a/pcl/pcursor.c
+++ b/pcl/pcursor.c
@@ -657,6 +657,17 @@ push_pop_cursor(
return 0;
}
+private int
+pcursor_do_copy(pcl_state_t *psaved,
+ const pcl_state_t *pcs, pcl_copy_operation_t operation)
+{
+ /* don't restore the current cap. The cap is not part of the
+ state */
+ if ( operation & pcl_copy_after )
+ psaved->cap = pcs->cap;
+ return 0;
+}
+
/*
* Initialization
*/
@@ -791,4 +802,4 @@ pcursor_do_reset(
}
}
-const pcl_init_t pcursor_init = { pcursor_do_registration, pcursor_do_reset, 0 };
+const pcl_init_t pcursor_init = { pcursor_do_registration, pcursor_do_reset, pcursor_do_copy };