sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 51337 - http://anonsvn.icesoft.org/repo / icepdf / branches / icepdf-6.2.0 / icepdf / viewer / src / org / icepdf / ri / common / MyAnnotationCallback.java
Unified Diff View - MyAnnotationCallback.java
/icepdf/branches/icepdf-6.2.0/icepdf/viewer/src/org/icepdf/ri/common/MyAnnotationCallback.java @ revision 51336
/icepdf/branches/icepdf-6.2.0/icepdf/viewer/src/org/icepdf/ri/common/MyAnnotationCallback.java @ revision 51337
@@ -231,15 +231,14 @@                         ((PageViewComponentImpl) pageComponent).getAnnotationComponents();                 Reference compReference;                 Reference popupReference = markupAnnotation.getPopupAnnotation().getPObjectReference(); -                AnnotationComponent annotationComp; -                for (int i = 0, max = annotationComponents.size(); i < max; i++) { -                    annotationComp = annotationComponents.get(i); +                for (AbstractAnnotationComponent annotationComp : annotationComponents) {                     compReference = annotationComp.getAnnotation().getPObjectReference();                     // find the component and toggle it's visibility.                     if (compReference != null && compReference.equals(popupReference)) {                         if (annotationComp instanceof PopupAnnotationComponent) {                             PopupAnnotationComponent popupComponent = ((PopupAnnotationComponent) annotationComp);                             ((PageViewComponentImpl) pageComponent).removeAnnotation(popupComponent); +                            break;                         }                     }                 }


feed icon

sventon 2.5.1