From: Robert Meyer Date: Tue, 18 Feb 2014 15:16:45 +0000 (+0000) Subject: FOP:2344 - SVG bleeds color between elements when outputting to AFP X-Git-Tag: fop-2_0~131 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=342e75cf8a9bff942763520a07be9b955f16c852;p=xmlgraphics-fop.git 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 --- 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;