summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:42 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:42 +0000
commit7702660144b198fca7250d6061768f57972f313a (patch)
tree0d7d2bd4420293d0966319cfcb4069388c3d2a95
parent097a32997c8cad126e63814478f07d34c25570b0 (diff)
downloadpdf-over-7702660144b198fca7250d6061768f57972f313a.tar.gz
pdf-over-7702660144b198fca7250d6061768f57972f313a.tar.bz2
pdf-over-7702660144b198fca7250d6061768f57972f313a.zip
Don't use locale in format strings involving numbers
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12712 3a0b52a2-8410-0410-bc02-ff6273a87459
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java3
-rw-r--r--trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java5
2 files changed, 6 insertions, 2 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java
index cb712678..dc50b60b 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java
@@ -20,6 +20,7 @@ import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
+import java.util.Locale;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -294,7 +295,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator {
props.setProperty(SIGNATURE_POSITION_CONFIG, "auto"); //$NON-NLS-1$
} else {
props.setProperty(SIGNATURE_POSITION_CONFIG,
- String.format("x=%f;y=%f;p=%d", //$NON-NLS-1$
+ String.format((Locale) null, "x=%f;y=%f;p=%d", //$NON-NLS-1$
pos.getX(), pos.getY(), pos.getPage()));
}
diff --git a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java
index a15a00e2..519ebd9e 100644
--- a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java
+++ b/trunk/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);