diff options
author | Chris Bowditch <cbowditch@apache.org> | 2007-10-04 13:51:25 +0000 |
---|---|---|
committer | Chris Bowditch <cbowditch@apache.org> | 2007-10-04 13:51:25 +0000 |
commit | 2442659ffd10775878356396cf8037cc3e6ea184 (patch) | |
tree | 4562b2a0477450c5609c082f955b7bdfaa9ff0a0 /src/java/org/apache/fop/area/PageViewport.java | |
parent | 6b01763aed5d65ed66804c2167323824f9040d9f (diff) | |
download | xmlgraphics-fop-2442659ffd10775878356396cf8037cc3e6ea184.tar.gz xmlgraphics-fop-2442659ffd10775878356396cf8037cc3e6ea184.zip |
Bugzilla #42144
Safely set postscript page device dictionary
Submitted by Adrian Cumiskey <dev.at.cumiskey.com>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@581906 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/PageViewport.java')
-rw-r--r-- | src/java/org/apache/fop/area/PageViewport.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/area/PageViewport.java b/src/java/org/apache/fop/area/PageViewport.java index 184eb9d32..af557ade9 100644 --- a/src/java/org/apache/fop/area/PageViewport.java +++ b/src/java/org/apache/fop/area/PageViewport.java @@ -666,4 +666,9 @@ public class PageViewport extends AreaTreeObject implements Resolvable, Cloneabl public RegionReference getRegionReference(int id) { return getPage().getRegionViewport(id).getRegionReference(); } + + /** @return whether this page viewport has any extension attachments */ + public boolean hasExtensionAttachments() { + return this.extensionAttachments != null && !this.extensionAttachments.isEmpty(); + } } |