xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r232236 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java
Date Fri, 12 Aug 2005 08:40:04 GMT
Author: jeremias
Date: Fri Aug 12 01:40:00 2005
New Revision: 232236

URL: http://svn.apache.org/viewcvs?rev=232236&view=rev
Log:
Fix regression that caused duplicate IDs when Reload was pressed in the AWT Viewer. The Fop
instance should only be used for one single rendering run. The regression was caused by the
introduction of a member variable for the FOTreeBuilder which is used to fetch the rendering
results.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java?rev=232236&r1=232235&r2=232236&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java Fri
Aug 12 01:40:00 2005
@@ -289,9 +289,8 @@
                 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;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message