summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-07-05 23:56:28 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2018-07-05 23:56:28 +0200
commitd6dece4edc2ef86889f99f3dbe5a6d6ed3b68b02 (patch)
treec1469b80be7520b9f2159390f9a8106216086997 /metapost
parent847821faaecf92833f1e1564e1ef9377758d4d45 (diff)
downloadcontext-d6dece4edc2ef86889f99f3dbe5a6d6ed3b68b02.tar.gz
2018-07-05 23:13:00
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mpiv/mp-node.mpiv6
1 files changed, 3 insertions, 3 deletions
diff --git a/metapost/context/base/mpiv/mp-node.mpiv b/metapost/context/base/mpiv/mp-node.mpiv
index 79391220b..b7abcd5e5 100644
--- a/metapost/context/base/mpiv/mp-node.mpiv
+++ b/metapost/context/base/mpiv/mp-node.mpiv
@@ -51,7 +51,7 @@ clearnodepath ;
vardef makenode@#(text t) =
for a = t :
- if (path a) or (unknown a) :
+ if (path a) or (unknown a) or ((string a) and (length(a) = 0)) :
mfun_makenode@#(t,)
else :
mfun_makenode@#(nodepath, t,)
@@ -62,7 +62,7 @@ enddef ;
vardef node@#(text t) =
for a = t :
- if (path a) or (unknown a) :
+ if (path a) or (unknown a) or ((string a) and (length(a) = 0)) :
mfun_node@#(t,)
else :
mfun_node@#(nodepath, t,)
@@ -73,7 +73,7 @@ enddef ;
vardef nodeboundingpoint@#(text t) =
for a = t :
- if (path a) or (unknown a) :
+ if (path a) or (unknown a) or ((string a) and (length(a) = 0)) :
mfun_nodeboundingpoint@#(t)
else :
mfun_nodeboundingpoint@#(nodepath,a)