[metapost] Segfault when trying to access mp_svg_ship_out!

Shriramana Sharma samjnaa at gmail.com
Fri Aug 10 15:07:03 CEST 2012


On Fri, Aug 10, 2012 at 6:09 PM, Shriramana Sharma <samjnaa at gmail.com> wrote:
> I just tried doing the above and it segfaulted on me.

... and replacing the line

mp_svg_ship_out ( curfig, 1 ) ;

with

mp_ps_ship_out ( curfig, 1, 0 ) ;

causes the same segfault for the same reason (i.e. hh->parent==0x0) too.

I don't get it -- is it something *I'm* doing wrong? I extracted the
curfig value the same way I did in my previous program which
successfully printed out the internals of the computed path. So I am
not sure why I'm getting a segfault with the same curfig value!

-- 
Shriramana Sharma


More information about the metapost mailing list