aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java b/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java
index bc63c14a9..b568ddeb2 100644
--- a/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java
+++ b/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java
@@ -289,9 +289,8 @@ public class PreviewPanel extends JPanel {
return;
}
- if (fop == null) {
- fop = new Fop(Constants.RENDER_AWT, foUserAgent);
- }
+ //Always recreate the Fop instance. It is a use-once only.
+ fop = new Fop(Constants.RENDER_AWT, foUserAgent);
pagePanels = null;