Index: poppler/CairoOutputDev.cc =================================================================== RCS file: /cvs/poppler/poppler/poppler/CairoOutputDev.cc,v retrieving revision 1.46 diff -u -r1.46 CairoOutputDev.cc --- poppler/CairoOutputDev.cc 12 Dec 2006 05:24:00 -0000 1.46 +++ poppler/CairoOutputDev.cc 20 Dec 2006 06:13:53 -0000 @@ -202,10 +202,14 @@ cairo_set_miter_limit (cairo, state->getMiterLimit()); } +#define MIN(a,b) (a) < (b) ? (a) : (b) + void CairoOutputDev::updateLineWidth(GfxState *state) { LOG(printf ("line width: %f\n", state->getLineWidth())); if (state->getLineWidth() == 0.0) { - cairo_set_line_width (cairo, 72.0/300.0); + double x = 1.0, y = 1.0; + cairo_device_to_user_distance(cairo, &x, &y); + cairo_set_line_width (cairo, MIN(fabs(x),fabs(y))); } else { cairo_set_line_width (cairo, state->getLineWidth()); }