[metapost] another pensquare bug

Stephan Hennig mailing_list at arcor.de
Thu Apr 3 14:17:25 CEST 2008


the following code doesn't even compile with MetaPost v1.001 for the
combination pensquare and linejoin:=mitered.  For a circled pen MP runs
fine, as well for the squared pen when linejoin:=rounded.

path p;
  p := ((1,0)..(0,1)..(-1,0)) scaled 1cm;
  linejoin := mitered;
%   draw p withpen pencircle;
  draw p withpen pensquare;
  currentpicture := currentpicture shifted -llcorner currentpicture;

The log file says

> This is MetaPost, Version 1.001 (MiKTeX 2.7) (preloaded mem=mpost 2008.1.15)  3 APR 2008 14:00
> **pensquare-bug.mp
> (pensquare-bug.mp [1
> ! This can't happen (degenerate spec).
> endfig->scantokens.extra_endfig;shipit;
>                                        endgroup
> l.8 endfig
>           ;
> I'm broken. Please show this to someone who can fix can fix

Note, there is another bug in the last line of the error message. :)

Best regards,
Stephan Hennig

PS:  I've added a tracker item

More information about the metapost mailing list