]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP:2344 - SVG bleeds color between elements when outputting to AFP
authorRobert Meyer <rmeyer@apache.org>
Tue, 18 Feb 2014 15:16:45 +0000 (15:16 +0000)
committerRobert Meyer <rmeyer@apache.org>
Tue, 18 Feb 2014 15:16:45 +0000 (15:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1569381 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/afp/svg/AFPTextHandler.java

index 3e987648e4fc664c7dd4ab21a648c4ba9c7dbd0b..e8e391bdb6c21f220589785d7e619d30bd348363 100644 (file)
@@ -120,9 +120,8 @@ public class AFPTextHandler extends FOPTextHandlerAdapter {
 
             // set the color
             AFPPaintingState paintingState = g2d.getPaintingState();
-            if (paintingState.setColor(color)) {
-                graphicsObj.setColor(color);
-            }
+            paintingState.setColor(color);
+            graphicsObj.setColor(color);
 
             // set the character set
             int fontReference = 0;