From 342e75cf8a9bff942763520a07be9b955f16c852 Mon Sep 17 00:00:00 2001 From: Robert Meyer Date: Tue, 18 Feb 2014 15:16:45 +0000 Subject: [PATCH] FOP:2344 - SVG bleeds color between elements when outputting to AFP 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/fop/afp/svg/AFPTextHandler.java b/src/java/org/apache/fop/afp/svg/AFPTextHandler.java index 3e987648e..e8e391bdb 100644 --- a/src/java/org/apache/fop/afp/svg/AFPTextHandler.java +++ b/src/java/org/apache/fop/afp/svg/AFPTextHandler.java @@ -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; -- 2.39.5