[poppler] poppler/Annot.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Sep 8 16:39:49 UTC 2018


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

New commits:
commit a238d170dd89e27efd44ea09126b84272c0ac47b
Author: Tobias Deiminger <haxtibal at posteo.de>
Date:   Fri Sep 7 16:30:48 2018 +0200

    Add missing newline after Tf in setTextFont
    
    Until now AnnotAppearanceBuilder::setTextFont was only used to write
    last operation in apperance string for /DA. There you don't notice
    the missing delimiter. Delimiter will however be required in general,
    e.g. when writing appearance string for /AP.

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 1ea14b43..61870bd5 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -1708,7 +1708,7 @@ void AnnotAppearanceBuilder::setDrawColor(const AnnotColor *drawColor, GBool fil
 
 void AnnotAppearanceBuilder::setTextFont(const Object &fontName, double fontSize) {
   if (fontName.isName() && strlen(fontName.getName()) > 0)
-    appearBuf->appendf("/{0:s} {1:.2f} Tf", fontName.getName(), fontSize);
+    appearBuf->appendf("/{0:s} {1:.2f} Tf\n", fontName.getName(), fontSize);
 }
 
 void AnnotAppearanceBuilder::setLineStyleForBorder(const AnnotBorder *border) {


More information about the poppler mailing list