[poppler] Branch 'poppler-0.16' - poppler/Annot.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sat Feb 26 05:03:56 PST 2011


 poppler/Annot.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4090be198d2052d0843e9ddb14ffe104951af5fb
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Sat Feb 26 14:00:33 2011 +0100

    annots: Don't assume y1 > y3 for quad points of a highlight annotation
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=643028

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index fe1a32f..d141a88 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -2637,7 +2637,7 @@ void AnnotTextMarkup::draw(Gfx *gfx, GBool printing) {
 	y3 = quadrilaterals->getY3(i);
 	x4 = quadrilaterals->getX4(i);
 	y4 = quadrilaterals->getY4(i);
-	h4 = (y1 - y3) / 4.0;
+	h4 = abs(y1 - y3) / 4.0;
 
 	appearBuf->appendf ("{0:.2f} {1:.2f} m\n", x3, y3);
 	appearBuf->appendf ("{0:.2f} {1:.2f} {2:.2f} {3:.2f} {4:.2f} {5:.2f} c\n",


More information about the poppler mailing list