[poppler] poppler/Annot.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Mar 6 16:06:14 UTC 2022


 poppler/Annot.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 894b47409ecbecca8735da63629030e14aa520ca
Author: ANaumann85 <42870-ANaumann85 at users.noreply.gitlab.freedesktop.org>
Date:   Sun Mar 6 16:06:11 2022 +0000

    Fix underline sometimes being drawn only partially

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 7f9bfbbc..65fff7b5 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -3748,6 +3748,8 @@ void AnnotTextMarkup::draw(Gfx *gfx, bool printing)
                 appearBuilder.setDrawColor(color.get(), false);
             }
             appearBuilder.append("[] 0 d 1 w\n");
+            // use a borderwidth, which is consistent with the line width
+            appearBBox->setBorderWidth(1.0);
 
             for (i = 0; i < quadrilaterals->getQuadrilateralsLength(); ++i) {
                 double x3, y3, x4, y4;


More information about the poppler mailing list