summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2008-04-18 14:17:00 +0200
committerHans Hagen <pragma@wxs.nl>2008-04-18 14:17:00 +0200
commitd948cb4eddff16f17051d8078b4c55cdd8e8f681 (patch)
tree633b47f4e9bf041c8b17002daf06d7e735bbc7b7 /metapost
parent66c43ffc47e4bf28c112bc5c593d1853212f7715 (diff)
downloadcontext-d948cb4eddff16f17051d8078b4c55cdd8e8f681.tar.gz
stable 2008.04.18 14:17
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mp-mlib.mp5
1 files changed, 5 insertions, 0 deletions
diff --git a/metapost/context/base/mp-mlib.mp b/metapost/context/base/mp-mlib.mp
index 03d30ba99..520e49b06 100644
--- a/metapost/context/base/mp-mlib.mp
+++ b/metapost/context/base/mp-mlib.mp
@@ -20,6 +20,10 @@ numeric _tt_w_[], _tt_h_[], _tt_d_[] ;
numeric _tt_n_ ; _tt_n_ := 0 ;
boolean _trial_run_ ; _trial_run_ := false ;
+def resettextexts =
+ _tt_n_ := 0 ;
+enddef ;
+
vardef textext(expr str) =
if _trial_run_ :
image (
@@ -137,6 +141,7 @@ enddef ;
extra_beginfig := extra_beginfig & "currentgraphictext := 0 ; " ;
extra_endfig := extra_endfig & "finishsavingdata ; " ;
+extra_endfig := extra_endfig & "resettextexts ; " ;
boolean cmykcolors ; cmykcolors := true ;
boolean spotcolors ; spotcolors := true ;