Author: jeremias
Date: Mon Apr 20 07:00:34 2009
New Revision: 766596

URL: http://svn.apache.org/viewvc?rev=766596&view=rev
Log:
Bugzilla #47031:
PDFGraphics2D.writeClip doesn't generate a clip command anymore when the clip 
path is empty.
Submitted by: Francois Fernandes <f.fernandes.at.web.de>

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java
    xmlgraphics/fop/trunk/status.xml

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java?rev=766596&r1=766595&r2=766596&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java 
(original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java Mon 
Apr 20 07:00:34 2009
@@ -707,8 +707,13 @@
         if (s == null) {
             return;
         }
-        preparePainting();
         PathIterator iter = s.getPathIterator(IDENTITY_TRANSFORM);
+        if (iter.isDone()) {
+            // no segments available. Not worth doing anything
+            return;
+        }
+        preparePainting();
+
         processPathIterator(iter);
         // clip area
         currentStream.write("W\n");

Modified: xmlgraphics/fop/trunk/status.xml
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/status.xml?rev=766596&r1=766595&r2=766596&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Mon Apr 20 07:00:34 2009
@@ -58,7 +58,11 @@
       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="JM" type="add">
+      <action context="Renderers" dev="JM" type="update" fixes-bug="47031" 
due-to="Francois Fernandes">
+        PDFGraphics2D.writeClip doesn't generate a clip command anymore when 
the clip path
+        is empty. 
+      </action>
+      <action context="Renderers" dev="JM" type="add" fixes-bug="47000">
         Added a custom text painter for rendering SVG text using text 
operators when rendering
         to PostScript or EPS. Text is no longer painted as shapes, thus 
creating much smaller files. 
       </action>



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

Reply via email to