From 28c78846bd1dd267abf2a73235ee088f3daf3eb6 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Fri, 20 Jan 2012 20:50:02 +1030 Subject: [PATCH] cairo: use fabs when comparing the transformed line width as the transform may cause a negative width. --- poppler/CairoOutputDev.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index 051f5d0..d4b6151 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc @@ -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); -- 1.7.5.4