<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Some clipped dashed paths not being drawn"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91195#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Some clipped dashed paths not being drawn"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91195">bug 91195</a>
from <span class="vcard"><a class="email" href="mailto:twointofive@gmail.com" title="Tom Klein <twointofive@gmail.com>"> <span class="fn">Tom Klein</span></a>
</span></b>
<pre>This originated from firefox bug
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1179859">https://bugzilla.mozilla.org/show_bug.cgi?id=1179859</a> but seems to still be
broken in current cairo.
It looks like there's a bug in _cairo_box_intersects_line_segment.
In the testcase, when
(fully_in_bounds ||
(! stroker->has_first_face && stroker->dash.dash_starts_on) ||
_cairo_box_intersects_line_segment (&stroker->bounds, &segment))
is tested in _cairo_stroker_line_to_dashed, the first two tests fail, but the
third should pass and doesn't.
Inside _cairo_box_intersects_line_segment we get xlen=5120, t1=-58147, and
t2=63267, so the
if ((t1 < 0 || t1 > xlen) &&
(t2 < 0 || t2 > xlen))
return FALSE;
test mistakenly returns FALSE.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>