diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2007-07-07 18:42:56 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2007-07-07 18:42:56 +0000 |
commit | 7433301271f20e1b5483aee5f9134c69d894d011 (patch) | |
tree | 6bfe6312f355881f8dc9f8ae621a3dcfe6ecdbb5 /src/java/org | |
parent | 8bad2fe485dae7b89d1b7fb53cff34d662e77e7f (diff) | |
download | xmlgraphics-fop-7433301271f20e1b5483aee5f9134c69d894d011.tar.gz xmlgraphics-fop-7433301271f20e1b5483aee5f9134c69d894d011.zip |
Bugzilla 42832: Fix in AWT preview if used with non-english locale (offered by Max Berger)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554240 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/render/awt/viewer/PreviewDialog.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/awt/viewer/PreviewDialog.java b/src/java/org/apache/fop/render/awt/viewer/PreviewDialog.java index 5ce3823ec..55f876422 100644 --- a/src/java/org/apache/fop/render/awt/viewer/PreviewDialog.java +++ b/src/java/org/apache/fop/render/awt/viewer/PreviewDialog.java @@ -40,6 +40,8 @@ import java.awt.print.PrinterException; import java.awt.print.PrinterJob; import java.text.DecimalFormat; +import java.text.DecimalFormatSymbols; +import java.util.Locale; import javax.swing.ActionMap; import javax.swing.BorderFactory; @@ -57,7 +59,6 @@ import javax.swing.JRadioButtonMenuItem; import javax.swing.JToolBar; import javax.swing.KeyStroke; import javax.swing.SwingUtilities; -import javax.swing.UIManager; import org.apache.fop.apps.FOUserAgent; import org.apache.fop.apps.FOPException; @@ -94,7 +95,8 @@ public class PreviewDialog extends JFrame implements StatusListener { private PreviewPanel previewPanel; /** Formats the text in the scale combobox. */ - private DecimalFormat percentFormat = new DecimalFormat("###0.0#"); + private DecimalFormat percentFormat = new DecimalFormat("###0.0#", + new DecimalFormatSymbols(Locale.ENGLISH)); /** * Creates a new PreviewDialog that uses the given renderer. |