Commit 3543fbc6 authored by RazrFalcon's avatar RazrFalcon

(cairo-backend) Fixed zero-length paths rendering.

parent b53ffe2c
......@@ -128,7 +128,7 @@ fn draw_subpath(
} else {
if let usvg::PathSegment::MoveTo { x, y } = segments[0] {
// Draw zero length path.
let shift = 0.001; // Purely empirical.
let shift = 0.002; // Purely empirical.
cr.new_sub_path();
cr.move_to(x, y);
cr.line_to(x + shift, y);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment