summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
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)