Le ven, mar 30, 2001, à 12:05:07 +0200, Cyrille Chepelov a écrit:
> > The attached file contains a simple custom shape, a triangle, that revealed
> > the "feature". I don't remember exactly at which line-width it started to
> > misbehave (and don't have an X-server at hand to test it with right now
> > while writing this), but the procedure is very simple:
>
> ..... Whoops, now I see what you mean. Basic objects are all fixed, but
> I'll check ASAP the custom ones.
Done the checking. Extremely quickly reproduced, with the default line
width (thanks Ben !)
It turns out my newer bounding box code, with its spiffy 11 degrees checks,
works for foo_conn objects, not Elements.
To properly fix this, I'll need to move the code from polyconn_update_data()
and friends to more generic routines, somewhere like lib/boundingbox.c[NEW],
or perhaps better, lib/shape_support.c (this one would also receive the
(poly){line|bezier} trimming code to support the new-style arrows). Of
course, this isn't 0.87 code, so I'm filing a bug against the BugZilla, and
in the meantime, I set custom->extra_spacing->border_trans to 42 times the
border width (this should account for the worst cases with the 11° magic
constant, IIRC).
In the process, I've also found another nasty one (crashbug if a shape
references an icon but doesn't provide one). Filing it for the moment.
-- Cyrille
--
Grumpf.