diff options
author | Chris Bowditch <cbowditch@apache.org> | 2009-06-25 07:30:08 +0000 |
---|---|---|
committer | Chris Bowditch <cbowditch@apache.org> | 2009-06-25 07:30:08 +0000 |
commit | db73a5d0a381d40c2b47eddb01a8cead2b06ddc1 (patch) | |
tree | f50d6c910f5f331a47cb24ce10f57e1faba550d4 /src/java/org/apache/fop | |
parent | 2e7c97181287960953c06c3e6d68c928991647f2 (diff) | |
download | xmlgraphics-fop-db73a5d0a381d40c2b47eddb01a8cead2b06ddc1.tar.gz xmlgraphics-fop-db73a5d0a381d40c2b47eddb01a8cead2b06ddc1.zip |
bug fix: make sure CropBox is honoured in SVG when overflow="hidden"
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@788278 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java b/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java index bacf43dbc..338a58d9c 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java +++ b/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java @@ -172,15 +172,15 @@ public class ImageLayout implements Constants { } this.clip = false; - if (cwidth > ipd || cheight > bpd) { - int overflow = props.getOverflow(); - if (overflow == EN_HIDDEN) { - this.clip = true; - } else if (overflow == EN_ERROR_IF_OVERFLOW) { + int overflow = props.getOverflow(); + if (overflow == EN_HIDDEN) { + this.clip = true; + } else if (overflow == EN_ERROR_IF_OVERFLOW) { + if (cwidth > ipd || cheight > bpd) { //TODO Don't use logging to report error! log.error("Object overflows the viewport: clipping"); - this.clip = true; } + this.clip = true; } int xoffset = computeXOffset(ipd, cwidth); |