sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 52236 - http://anonsvn.icesoft.org/repo / icepdf / trunk / icepdf / core / core-awt / src / main / java / org / icepdf / core / pobjects / OptionalContentMembership.java
Unified Diff View - OptionalContentMembership.java
/icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/OptionalContentMembership.java @ revision 52235
/icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/OptionalContentMembership.java @ revision 52236
@@ -95,8 +95,14 @@                     ocgs.add((OptionalContentGroup) ocg);                 }             } + +        } +        if (ocgs.size() > 0) { +            policy = VisibilityPolicy.getPolicy(library.getName(entries, P_KEY)); +        } else { +            // if no ocgs, then everything should be visible +            policy = VisibilityPolicy.ALL_ON;         } -        policy = VisibilityPolicy.getPolicy(library.getName(entries, P_KEY));         inited = true;     } @@ -137,7 +143,7 @@                         return true;                     }                 } -                return true; +                return false;             }         },         ANY_OFF {


feed icon

sventon 2.5.1