[poppler] Branch 'poppler-0.6' - poppler/Gfx.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Jan 23 14:26:39 PST 2008
poppler/Gfx.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit be483cf92bcf113d5b1ec566890eff5e11a1efae
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 c6f0767..e07aa32 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4205,11 +4205,11 @@ void Gfx::drawAnnot(Object *str, AnnotBorderStyle *borderStyle,
}
//~ 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 (borderStyle->getType() != annotBorderUnderlined) {
- 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