[poppler] poppler/Annot.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Oct 16 15:20:41 PDT 2012


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

New commits:
commit fb5cb0fbdfcd06556661b38b0c598922fff2d759
Author: Fabio D'Urso <fabiodurso at hotmail.it>
Date:   Thu Oct 4 11:20:42 2012 +0200

    Create the 24x24 rectangle for text annotation icons from the top-left corner instead of bottom-left

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index aa34197..dae0f62 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -2392,7 +2392,7 @@ void AnnotText::draw(Gfx *gfx, GBool printing) {
     appearBuf->append ("Q\n");
 
     // Force 24x24 rectangle
-    PDFRectangle fixedRect(rect->x1, rect->y1, rect->x1 + 24, rect->y1 + 24);
+    PDFRectangle fixedRect(rect->x1, rect->y2 - 24, rect->x1 + 24, rect->y2);
     appearBBox = new AnnotAppearanceBBox(&fixedRect);
     double bbox[4];
     appearBBox->getBBoxRect(bbox);


More information about the poppler mailing list