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 committed by Arnaud Bonatti
parent 2b8e30a8ed
commit 42d064c62f

View File

@ -405,8 +405,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
{