summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java4
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);
}
/**