diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:36:53 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:36:53 +0000 |
commit | 3907fb7ebcdef20fe9f322752fb13f7f6d84a919 (patch) | |
tree | 315f6493ff143064043e7677a661f57b9cdf6cab /pdf-over-gui | |
parent | a1e36a7b5f197104e09422031282ba9fafce7337 (diff) | |
download | pdf-over-3907fb7ebcdef20fe9f322752fb13f7f6d84a919.tar.gz pdf-over-3907fb7ebcdef20fe9f322752fb13f7f6d84a919.tar.bz2 pdf-over-3907fb7ebcdef20fe9f322752fb13f7f6d84a919.zip |
Signature position can't go below zero
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@415 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java index df375367..4356ca96 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java @@ -198,7 +198,7 @@ public class SignaturePanel extends JPanel { * @return signature x coordinate */ public float getSignaturePositionX() { - return (float) this.sigPagePos.getX(); + return Math.max((float) this.sigPagePos.getX(), 0); } /** @@ -206,7 +206,7 @@ public class SignaturePanel extends JPanel { * @return signature y coordinate */ public float getSignaturePositionY() { - return (float) this.sigPagePos.getY(); + return Math.max((float) this.sigPagePos.getY(), 0); } /** |