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

New commits:
commit 4980b99214281dcab8f82b5b618aadc24de371f4
Author: Carlos Garcia Campos <[email protected]>
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",
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to