aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/image
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-10-21 08:58:08 +0000
committerJeremias Maerki <jeremias@apache.org>2008-10-21 08:58:08 +0000
commit8b65aafce052c7048b2366cd2ac73cbfbcb9c154 (patch)
tree67b41c84b03fbd83300bcd7aa103606374f67f28 /src/java/org/apache/fop/image
parentd6d3411ca856d605080c25624da32cd9ad1df9bb (diff)
parente157058f724241cee23ad406fb2fd3707a4efac3 (diff)
downloadxmlgraphics-fop-8b65aafce052c7048b2366cd2ac73cbfbcb9c154.tar.gz
xmlgraphics-fop-8b65aafce052c7048b2366cd2ac73cbfbcb9c154.zip
Merge from Trunk revisions 699793 to 706550.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@706553 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/image')
-rw-r--r--src/java/org/apache/fop/image/loader/batik/ImageLoaderSVG.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/image/loader/batik/ImageLoaderSVG.java b/src/java/org/apache/fop/image/loader/batik/ImageLoaderSVG.java
index c5c113b04..bb9c7d395 100644
--- a/src/java/org/apache/fop/image/loader/batik/ImageLoaderSVG.java
+++ b/src/java/org/apache/fop/image/loader/batik/ImageLoaderSVG.java
@@ -23,6 +23,7 @@ import java.io.IOException;
import java.util.Map;
import org.apache.batik.dom.svg.SVGDOMImplementation;
+
import org.apache.xmlgraphics.image.loader.Image;
import org.apache.xmlgraphics.image.loader.ImageException;
import org.apache.xmlgraphics.image.loader.ImageFlavor;
@@ -45,8 +46,8 @@ public class ImageLoaderSVG extends AbstractImageLoader {
* @param targetFlavor the target flavor
*/
public ImageLoaderSVG(ImageFlavor targetFlavor) {
- if (!(XMLNamespaceEnabledImageFlavor.SVG_DOM.equals(targetFlavor))) {
- throw new IllegalArgumentException("Unsupported target ImageFlavor: " + targetFlavor);
+ if (!(XMLNamespaceEnabledImageFlavor.SVG_DOM.isCompatible(targetFlavor))) {
+ throw new IllegalArgumentException("Incompatible target ImageFlavor: " + targetFlavor);
}
this.targetFlavor = targetFlavor;
}