diff options
Diffstat (limited to 'Master/texmf-dist/metapost/context/base/mpiv/mp-node.mpiv')
-rw-r--r-- | Master/texmf-dist/metapost/context/base/mpiv/mp-node.mpiv | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf-dist/metapost/context/base/mpiv/mp-node.mpiv b/Master/texmf-dist/metapost/context/base/mpiv/mp-node.mpiv index 79391220b44..5829558e65f 100644 --- a/Master/texmf-dist/metapost/context/base/mpiv/mp-node.mpiv +++ b/Master/texmf-dist/metapost/context/base/mpiv/mp-node.mpiv @@ -53,6 +53,8 @@ vardef makenode@#(text t) = for a = t : if (path a) or (unknown a) : mfun_makenode@#(t,) + elseif (string a) and (length(a) = 0) : + mfun_makenode@#(t,) else : mfun_makenode@#(nodepath, t,) fi @@ -64,6 +66,8 @@ vardef node@#(text t) = for a = t : if (path a) or (unknown a) : mfun_node@#(t,) + elseif (string a) and (length(a) = 0) : + mfun_node@#(t,) else : mfun_node@#(nodepath, t,) fi @@ -75,6 +79,8 @@ vardef nodeboundingpoint@#(text t) = for a = t : if (path a) or (unknown a) : mfun_nodeboundingpoint@#(t) + elseif (string a) and (length(a) = 0) : + mfun_nodeboundingpoint@#(t) else : mfun_nodeboundingpoint@#(nodepath,a) fi @@ -231,7 +237,7 @@ vardef betweennodes@#(suffix p)(expr f)(suffix q)(text s) = for a = s : if unknown t : t = a ; - nodeboundingpoint@#(q,t) + nodeboundingpoint@#(p,f) + mfun_nodeboundingpoint@#(q,t) + mfun_nodeboundingpoint@#(p,f) else : + relative@#(a) fi |