summaryrefslogtreecommitdiff
path: root/tex/context/base/anch-pgr.mkii
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/anch-pgr.mkii')
-rw-r--r--tex/context/base/anch-pgr.mkii8
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/anch-pgr.mkii b/tex/context/base/anch-pgr.mkii
index 194f19755..cc7ae77f4 100644
--- a/tex/context/base/anch-pgr.mkii
+++ b/tex/context/base/anch-pgr.mkii
@@ -66,10 +66,14 @@
\def\registerpageposition#1% this one is flushed first !
{\ifpositioning\ifcase\realpageno\or
- \ifdim\printpaperheight=\paperheight\else
- \ifdim\printpaperwidth=\paperwidth\else
+ \ifdim\printpaperheight=\paperheight
+ \ifdim\printpaperwidth=\paperwidth
+ % not needed,
+ \else
\setbox#1\hbox{\hpos\pageanchor{\box#1}}%
\fi
+ \else
+ \setbox#1\ruledhbox{\hpos\pageanchor{\box#1}}%
\fi
\fi\fi}