Commit c043f298 authored by Adrian Johnson's avatar Adrian Johnson Committed by Carlos Garcia Campos

cairo: assume printer pixel size is 1/600" when stroking 0 width lines

Fixes bug #39067.
parent 961adf0b
......@@ -408,6 +408,11 @@ void CairoOutputDev::updateLineWidth(GfxState *state) {
/* find out how big pixels (device unit) are in the x and y directions
* choose the smaller of the two as our line width */
double x = 1.0, y = 1.0;
if (printing) {
// assume printer pixel size is 1/600 inch
x = 72.0/600;
y = 72.0/600;
}
cairo_device_to_user_distance(cairo, &x, &y);
cairo_set_line_width (cairo, MIN(fabs(x),fabs(y)));
} else {
......
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