Browse Source

bug fix: 47694 Avoid create IOCA for background on empty areas

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@804268 13f79535-47bb-0310-9956-ffa450edef68
pull/37/head
Chris Bowditch 14 years ago
parent
commit
afdac9cfa1
2 changed files with 6 additions and 0 deletions
  1. 3
    0
      src/java/org/apache/fop/afp/AFPDitheredRectanglePainter.java
  2. 3
    0
      status.xml

+ 3
- 0
src/java/org/apache/fop/afp/AFPDitheredRectanglePainter.java View File

@@ -55,6 +55,9 @@ public class AFPDitheredRectanglePainter extends AbstractAFPPainter {
/** {@inheritDoc} */
public void paint(PaintingInfo paintInfo) throws IOException {
RectanglePaintingInfo rectanglePaintInfo = (RectanglePaintingInfo)paintInfo;
if (rectanglePaintInfo.getWidth() <= 0 || rectanglePaintInfo.getHeight() <= 0) {
return;
}

int ditherMatrix = DitherUtil.DITHER_MATRIX_8X8;
Dimension ditherSize = new Dimension(ditherMatrix, ditherMatrix);

+ 3
- 0
status.xml View File

@@ -58,6 +58,9 @@
documents. Example: the fix of marks layering will be such a case when it's done.
-->
<release version="FOP Trunk" date="TBD">
<action context="Renderers" dev="CB" type="fix" fixes-bug="47694">
Dithered Background Shading can produce illegal AFP if objects are very small
</action>
<action context="Renderers" dev="CB" type="add">
AFP Output: Added support for IMM Extension on fo:simple-page-master.
</action>

Loading…
Cancel
Save