[poppler] Branch 'poppler-0.10' - poppler/Gfx.cc

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


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

New commits:
commit 6ebd3eece0336807a5c864b57f2f5b3d91a94723
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 7e0c768..c28aa1b 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4215,7 +4215,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