[poppler] poppler/Gfx.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat May 9 13:26:57 PDT 2009


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

New commits:
commit 68d9644499676ed1553b2bfcdbfc9a5677c75345
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat May 9 22:25:12 2009 +0200

    Hidden property depends on parent being hidden, not only yourself
    
    Fixes bug #16093

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 0eef5d3..b63d424 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4216,7 +4216,13 @@ void Gfx::pushMarkedContent() {
 }
 
 GBool Gfx::contentIsHidden() {
-  return mcStack && mcStack->ocSuppressed;
+  MarkedContentStack *mc = mcStack;
+  bool hidden = mc && mc->ocSuppressed;
+  while (!hidden && mc && mc->next) {
+    mc = mc->next;
+    hidden = mc->ocSuppressed;
+  }
+  return hidden;
 }
 
 void Gfx::opBeginMarkedContent(Object args[], int numArgs) {


More information about the poppler mailing list