From 12934d1bd9504f521b0311f097b1d7ae560f9fb2 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Tue, 4 Sep 2007 18:11:16 +0000 Subject: [PATCH] Bugzilla 43274: Fix for erroneous usage of inherited color-values in SVG context. Thanks to ckohrn.AT.tng.de. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@572763 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/svg/PDFGraphics2D.java | 16 ++++------------ status.xml | 3 +++ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/java/org/apache/fop/svg/PDFGraphics2D.java b/src/java/org/apache/fop/svg/PDFGraphics2D.java index 3902b30fd..4132e17e8 100644 --- a/src/java/org/apache/fop/svg/PDFGraphics2D.java +++ b/src/java/org/apache/fop/svg/PDFGraphics2D.java @@ -719,13 +719,9 @@ public class PDFGraphics2D extends AbstractGraphics2D { } c = getColor(); - if (graphicsState.setColor(c)) { - applyColor(c, false); - } + applyColor(c, false); c = getBackground(); - if (graphicsState.setBackColor(c)) { - applyColor(c, true); - } + applyColor(c, true); Paint paint = getPaint(); if (graphicsState.setPaint(paint)) { @@ -1718,13 +1714,9 @@ public class PDFGraphics2D extends AbstractGraphics2D { } c = getColor(); - if (graphicsState.setColor(c)) { - applyColor(c, true); - } + applyColor(c, true); c = getBackground(); - if (graphicsState.setBackColor(c)) { - applyColor(c, false); - } + applyColor(c, false); Paint paint = getPaint(); if (graphicsState.setPaint(paint)) { diff --git a/status.xml b/status.xml index 6c0c2bd52..3d67b242e 100644 --- a/status.xml +++ b/status.xml @@ -28,6 +28,9 @@ + + Fixed erroneous usage of inherited color-values in SVG. + -- 2.39.5