]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added a default ErrorListener just to be on the safe side.
authorJeremias Maerki <jeremias@apache.org>
Tue, 26 Aug 2008 11:50:31 +0000 (11:50 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 26 Aug 2008 11:50:31 +0000 (11:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@689039 13f79535-47bb-0310-9956-ffa450edef68

test/java/org/apache/fop/visual/AbstractPSPDFBitmapProducer.java
test/java/org/apache/fop/visual/BitmapProducerJava2D.java

index 9afe66f9b35b8d4fe8a9ab99f8e384d8e726d6c3..0d976219da3751f63c4e01e4437e59aacf03079e 100644 (file)
@@ -39,6 +39,7 @@ import org.apache.commons.io.IOUtils;
 import org.apache.fop.apps.FOUserAgent;
 import org.apache.fop.apps.Fop;
 import org.apache.fop.apps.FopFactory;
+import org.apache.fop.util.DefaultErrorListener;
 
 /**
  * BitmapProducer implementation that uses the PS or PDF renderer and an external converter
@@ -135,6 +136,7 @@ public abstract class AbstractPSPDFBitmapProducer extends AbstractBitmapProducer
                     SAXResult res = new SAXResult(fop.getDefaultHandler());
 
                     Transformer transformer = getTransformer(context);
+                    transformer.setErrorListener(new DefaultErrorListener(log));
                     transformer.transform(new StreamSource(src), res);
                 } finally {
                     IOUtils.closeQuietly(out);
index 9d4db63916f43f523908126c971b8c47f1b2904c..bd78fd93f16a666fa857da655ecb88dac8f04544 100644 (file)
@@ -38,6 +38,7 @@ import org.apache.fop.apps.FOUserAgent;
 import org.apache.fop.apps.Fop;
 import org.apache.fop.apps.FopFactory;
 import org.apache.fop.apps.MimeConstants;
+import org.apache.fop.util.DefaultErrorListener;
 
 /**
  * BitmapProducer implementation that uses the Java2DRenderer to create bitmaps.
@@ -80,6 +81,7 @@ public class BitmapProducerJava2D extends AbstractBitmapProducer implements Conf
                 SAXResult res = new SAXResult(fop.getDefaultHandler());
 
                 Transformer transformer = getTransformer(context);
+                transformer.setErrorListener(new DefaultErrorListener(log));
                 transformer.transform(new StreamSource(src), res);
             } finally {
                 IOUtils.closeQuietly(out);