poppler/Gfx.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit 68d9644499676ed1553b2bfcdbfc9a5677c75345 Author: Albert Astals Cid <[email protected]> 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) { _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
