From c565bad8901dbe66e1402cdc2418986e96e698e3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 19 Oct 2012 12:22:58 +0100 Subject: [PATCH] pen: Relax invisibility criteria from half-tolerance to quarter-tolerance Inkscape is one user who sets geometric tolerance to 1.25 pixels when stroking sub-pixel lines. Whilst we wait for inkscape to set sensible values for their tolerance, we have to allow through the current values in order to prevent the fine strokes from disappearing. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56099 Signed-off-by: Chris Wilson --- src/cairo-pen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-pen.c b/src/cairo-pen.c index cf441c4c6..ea9e36a5e 100644 --- a/src/cairo-pen.c +++ b/src/cairo-pen.c @@ -284,7 +284,7 @@ _cairo_pen_vertices_needed (double tolerance, radius); int num_vertices; - if (tolerance >= 2*major_axis) { + if (tolerance >= 4*major_axis) { /* XXX relaxed from 2*major for inkscape */ num_vertices = 1; } else if (tolerance >= major_axis) { num_vertices = 4;