diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:05:41 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:05:41 +0000 |
commit | 9ac4064fb9cf0cc95f2fb32ef9bb476bb1a0016a (patch) | |
tree | 8cd28c75e60b87c96a26efebeaa572706e49374e /pdf-over-signer/pdf-over-sigpdfas | |
parent | 7c499c09c039d1a875d8f4463a0c2816337c8e6d (diff) | |
download | pdf-over-9ac4064fb9cf0cc95f2fb32ef9bb476bb1a0016a.tar.gz pdf-over-9ac4064fb9cf0cc95f2fb32ef9bb476bb1a0016a.tar.bz2 pdf-over-9ac4064fb9cf0cc95f2fb32ef9bb476bb1a0016a.zip |
Don't use locale in format strings involving numbers
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@126 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-signer/pdf-over-sigpdfas')
-rw-r--r-- | pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java index a15a00e2..519ebd9e 100644 --- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java +++ b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java @@ -25,6 +25,7 @@ import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; +import java.util.Locale; import javax.imageio.ImageIO; @@ -78,10 +79,12 @@ public class PdfAsSignatureParameter extends SignatureParameter { if (!position.useAutoPositioning()) { if (position.getPage() < 1) { positioning = new SignaturePositioning(String.format( + (Locale) null, "p:new;x:%f;y:%f;w:262", position.getX(), position.getY())); } else { positioning = new SignaturePositioning(String.format( + (Locale) null, "p:%d;x:%f;y:%f;w:262", position.getPage(), position.getX(), position.getY())); } @@ -231,7 +234,7 @@ public class PdfAsSignatureParameter extends SignatureParameter { style = table.getStyle(); } - log.debug(String.format("Table@ %dx%d", xoff, yoff)); + log.debug(String.format((Locale) null, "Table@ %dx%d", xoff, yoff)); Font oldFont = g.getFont(); Font font = PdfAsSignatureParameter.getFont(style); |