On 10/4/2013 2:52 PM, Peter Rolf wrote:
Hi,
I played around with the new passvariable() option and ran into errors when passing a path. Used the latest beta (01.10.2013). Can someone confirm this?
in mp-mlib.mpiv: vardef mfun_path_to_string(expr p) = mfun_point_to_string(p,1) for i=2 upto length(p) : & " " & mfun_point_to_string(p,i) endfor enddef ; vardef mfun_boolean_to_string(expr b) = if b : "true" else : "false" fi enddef ; (i forgot to rename the argument when outlining the code) fwiw: in your case you still get an (empty) graphic, use \startMPcalculation ... when you don't want that Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------