summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2008-03-10 23:20:00 +0100
committerHans Hagen <pragma@wxs.nl>2008-03-10 23:20:00 +0100
commite4c575ea1e6cb242b3b8441eb4febc0e469412f2 (patch)
tree5ddbbc41a6aea426dac1386905e1a0953b2ca3b6 /metapost
parentf0302311dd47bf250c0e2b5f8be46f21437f43d8 (diff)
downloadcontext-e4c575ea1e6cb242b3b8441eb4febc0e469412f2.tar.gz
stable 2008.03.10 23:20
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mp-tool.mp5
1 files changed, 3 insertions, 2 deletions
diff --git a/metapost/context/base/mp-tool.mp b/metapost/context/base/mp-tool.mp
index a98f73922..567ff16fd 100644
--- a/metapost/context/base/mp-tool.mp
+++ b/metapost/context/base/mp-tool.mp
@@ -2220,9 +2220,10 @@ enddef ;
% handy for myself
def addbackground text t =
- begingroup ; save p ; picture p ;
+ begingroup ; save p, b ; picture p ; path b ;
+ b := boundingbox currentpicture ;
p := currentpicture ; currentpicture := nullpicture ;
- fill boundingbox p t ; addto currentpicture also p ;
+ fill b t ; setbounds currentpicture to b ; addto currentpicture also p ;
endgroup ;
enddef ;