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 15 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

/** {@inheritDoc} */ /** {@inheritDoc} */
public void paint(PaintingInfo paintInfo) throws IOException { public void paint(PaintingInfo paintInfo) throws IOException {
RectanglePaintingInfo rectanglePaintInfo = (RectanglePaintingInfo)paintInfo; RectanglePaintingInfo rectanglePaintInfo = (RectanglePaintingInfo)paintInfo;
if (rectanglePaintInfo.getWidth() <= 0 || rectanglePaintInfo.getHeight() <= 0) {
return;
}


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

+ 3
- 0
status.xml View File

documents. Example: the fix of marks layering will be such a case when it's done. documents. Example: the fix of marks layering will be such a case when it's done.
--> -->
<release version="FOP Trunk" date="TBD"> <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"> <action context="Renderers" dev="CB" type="add">
AFP Output: Added support for IMM Extension on fo:simple-page-master. AFP Output: Added support for IMM Extension on fo:simple-page-master.
</action> </action>

Loading…
Cancel
Save