summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/page-inj.mklx
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-09-13 10:02:31 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-09-13 10:02:31 +0200
commita8c525cd14d77b94662021671ef8eb62d5a7fe50 (patch)
treede834dfbe0fbdf277ca206d59896cacc4f9840c9 /tex/context/base/mkxl/page-inj.mklx
parent0b177b615d126b85d1399fba3cc55bb0d3ddfbba (diff)
downloadcontext-a8c525cd14d77b94662021671ef8eb62d5a7fe50.tar.gz
2021-09-13 09:40:00
Diffstat (limited to 'tex/context/base/mkxl/page-inj.mklx')
-rw-r--r--tex/context/base/mkxl/page-inj.mklx10
1 files changed, 8 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/page-inj.mklx b/tex/context/base/mkxl/page-inj.mklx
index fda757dbe..8732e2628 100644
--- a/tex/context/base/mkxl/page-inj.mklx
+++ b/tex/context/base/mkxl/page-inj.mklx
@@ -33,8 +33,14 @@
\let\page_boxes_flush_after \clf_flushpageinjectionsafter
\def\page_injections_flush_indeed
- {\scrn_canvas_synchronize_set{\pageinjectionparameter\c!width}{\pageinjectionparameter\c!height}%
- \invokepagehandler\v!normal{\inheritedpageinjectionframed{\texsetup\p_page_injectionalternative_rederingsetup}}%
+ {\begingroup
+ \setbox\scratchbox\normalhpack
+ {\inheritedpageinjectionframed{\texsetup\p_page_injectionalternative_rederingsetup}}%
+ \printpaperwidth \wd\scratchbox
+ \printpaperheight\ht\scratchbox
+ \scrn_canvas_synchronize_only
+ \invokepagehandler\v!normal{\box\scratchbox}%
+ \endgroup
\scrn_canvas_synchronize_reset}
\def\page_injections_flush_saved#name#parameters%