[poppler] poppler/Gfx.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Jan 23 14:31:12 PST 2008


 poppler/Gfx.cc |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 2335fb6034d2e9ec304abba400119b88302b3160
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Jan 23 23:26:20 2008 +0100

    Draw underlined Links correctly
    
    See http://bugs.kde.org/show_bug.cgi?id=151359 for an example

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 2f20183..f21ae6e 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4288,11 +4288,11 @@ void Gfx::drawAnnot(Object *str, AnnotBorder *border, AnnotColor *aColor,
     }
     //~ this doesn't currently handle the beveled and engraved styles
     state->clearPath();
-    state->moveTo(annotX0, out->upsideDown() ? annotY1 : annotY0);
-    state->lineTo(annotX1, out->upsideDown() ? annotY1 : annotY0);
+    state->moveTo(annotX0, out->upsideDown() ? annotY0 : annotY1);
+    state->lineTo(annotX1, out->upsideDown() ? annotY0 : annotY1);
     if (border->getStyle() != AnnotBorder::borderUnderlined) {
-      state->lineTo(annotX1, out->upsideDown() ? annotY0 : annotY1);
-      state->lineTo(annotX0, out->upsideDown() ? annotY0 : annotY1);
+      state->lineTo(annotX1, out->upsideDown() ? annotY1 : annotY0);
+      state->lineTo(annotX0, out->upsideDown() ? annotY1 : annotY0);
       state->closePath();
     }
     out->stroke(state);


More information about the poppler mailing list