Commit a04fca62 authored by Adrian Johnson's avatar Adrian Johnson

cairo: use fabs when comparing the transformed line width

as the transform may cause a negative width.

Bug 43441
parent ce1b6c7c
......@@ -439,7 +439,7 @@ void CairoOutputDev::updateLineWidth(GfxState *state) {
/* find out line width in device units */
cairo_user_to_device_distance(cairo, &x, &y);
if (x <= 1.0 && y <= 1.0) {
if (fabs(x) <= 1.0 && fabs(y) <= 1.0) {
/* adjust width to at least one device pixel */
x = y = 1.0;
cairo_device_to_user_distance(cairo, &x, &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