Make dashed border-style work correctly

There’s a short-path done for focus rectangles, but it can be taken in other conditions, and then fail occasionally to render a dashed line if the border-width is too big.
This commit is contained in:
Arnaud B 2018-09-21 12:25:23 +00:00
parent 36656ea13a
commit 0feebcf145

View File

@ -447,8 +447,8 @@ set_stroke_style (cairo_t *cr,
*/
if (n == nearbyint (n))
{
segments[0] = 1;
segments[1] = 2;
segments[0] = line_width;
segments[1] = 2 * line_width;
}
else
{