Commit e2def20a authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Only assume the OC is not visible if it exists and is set to no

Fixes bug 26532 and a small line that was not drawn in 15899
parent 5edd175b
......@@ -5,7 +5,7 @@
// Copyright 2007 Brad Hards <bradh@kde.org>
// Copyright 2008 Pino Toscano <pino@kde.org>
// Copyright 2008 Carlos Garcia Campos <carlosgc@gnome.org>
// Copyright 2008 Albert Astals Cid <aacid@kde.org>
// Copyright 2008, 2010 Albert Astals Cid <aacid@kde.org>
// Copyright 2008 Mark Kaplan <mkaplan@finjan.com>
//
// Released under the GPL (version 2, or later, at your option)
......@@ -199,7 +199,7 @@ bool OCGs::optContentIsVisible( Object *dictRef )
}
} else if (ocg.isRef()) {
OptionalContentGroup* oc = findOcgByRef( ocg.getRef() );
if ( !oc || oc->getState() == OptionalContentGroup::Off ) {
if ( oc && oc->getState() == OptionalContentGroup::Off ) {
result = false;
} else {
result = true ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment