aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/RendererFactory.java
diff options
context:
space:
mode:
authorMehdi Houshmand <mehdi@apache.org>2012-01-24 09:53:32 +0000
committerMehdi Houshmand <mehdi@apache.org>2012-01-24 09:53:32 +0000
commitf248634b7fcd300446c25275d89cf7e07f3757c3 (patch)
tree6c21f675be9722d81f8eaade9f5d58bbfbb94c75 /src/java/org/apache/fop/render/RendererFactory.java
parentfb20c15fa4aafcc71ddb7288d45d32db118a7d86 (diff)
downloadxmlgraphics-fop-f248634b7fcd300446c25275d89cf7e07f3757c3.tar.gz
xmlgraphics-fop-f248634b7fcd300446c25275d89cf7e07f3757c3.zip
Reverted changes made in r1234877, see bugzilla#52513
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1235189 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/RendererFactory.java')
-rw-r--r--src/java/org/apache/fop/render/RendererFactory.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/RendererFactory.java b/src/java/org/apache/fop/render/RendererFactory.java
index 3ceb27a8e..bc598450f 100644
--- a/src/java/org/apache/fop/render/RendererFactory.java
+++ b/src/java/org/apache/fop/render/RendererFactory.java
@@ -299,6 +299,7 @@ public class RendererFactory {
AbstractRendererMaker maker = getRendererMaker(outputFormat);
if (maker != null) {
Renderer rend = maker.makeRenderer(userAgent);
+ rend.setUserAgent(userAgent);
RendererConfigurator configurator = maker.getConfigurator(userAgent);
if (configurator != null) {
configurator.configure(rend);
@@ -310,7 +311,8 @@ public class RendererFactory {
}
private Renderer createRendererForDocumentHandler(IFDocumentHandler documentHandler) {
- IFRenderer rend = new IFRenderer(documentHandler.getContext().getUserAgent());
+ IFRenderer rend = new IFRenderer();
+ rend.setUserAgent(documentHandler.getContext().getUserAgent());
rend.setDocumentHandler(documentHandler);
return rend;
}