[poppler] poppler/Annot.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sun Mar 27 03:41:45 PDT 2011


 poppler/Annot.cc |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit b7edd4c93539585652961ecf2db9c4462415c8bc
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Sun Mar 27 12:31:19 2011 +0200

    annot: Always create appearance streams when NeedAppearances is true
    
    Fixes regression in document example_054.pdf

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index ce864f7..c871dcb 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -3855,9 +3855,9 @@ void AnnotWidget::draw(Gfx *gfx, GBool printing) {
   // - NeedAppearances is true or
   // - widget has been modified or
   if (field) {
-    if (appearance.isNull() ||
-        (((field->getType() == formText || field->getType() == formChoice)) &&
-         ((form && form->getNeedAppearances()) || field->isModified())))
+    if (appearance.isNull() || (form && form->getNeedAppearances()) ||
+        ((field->getType() == formText || field->getType() == formChoice) &&
+         field->isModified()))
       generateFieldAppearance();
   }
 


More information about the poppler mailing list