Author: cbowditch
Date: Fri Aug 14 15:46:05 2009
New Revision: 804268

URL: http://svn.apache.org/viewvc?rev=804268&view=rev
Log:
bug fix: 47694 Avoid create IOCA for background on empty areas

Modified:
    
xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/AFPDitheredRectanglePainter.java
    xmlgraphics/fop/trunk/status.xml

Modified: 
xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/AFPDitheredRectanglePainter.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/AFPDitheredRectanglePainter.java?rev=804268&r1=804267&r2=804268&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/AFPDitheredRectanglePainter.java
 (original)
+++ 
xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/AFPDitheredRectanglePainter.java
 Fri Aug 14 15:46:05 2009
@@ -55,6 +55,9 @@
     /** {...@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);

Modified: xmlgraphics/fop/trunk/status.xml
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/status.xml?rev=804268&r1=804267&r2=804268&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Fri Aug 14 15:46:05 2009
@@ -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>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to