summaryrefslogtreecommitdiff
path: root/pdf-over-signator/src/main/java/at/asit/pdfover
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-03 13:01:21 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-03 13:01:21 +0200
commit984b318cd8e54d2cd92f1b7ad19c05045decd855 (patch)
tree2a936acc146c36f7b8038943f04e6cb5f8c384bf /pdf-over-signator/src/main/java/at/asit/pdfover
parent8e5cfeb486a78cb72e850be74a15a82113746d7e (diff)
downloadpdf-over-984b318cd8e54d2cd92f1b7ad19c05045decd855.tar.gz
pdf-over-984b318cd8e54d2cd92f1b7ad19c05045decd855.tar.bz2
pdf-over-984b318cd8e54d2cd92f1b7ad19c05045decd855.zip
i am 98% confident that this was a typo
Diffstat (limited to 'pdf-over-signator/src/main/java/at/asit/pdfover')
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java
index f0df95c4..e57e4e3e 100644
--- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java
+++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java
@@ -88,7 +88,7 @@ public class Emblem {
height = (int) (maxWidth / ratio);
}
BufferedImage result = img;
- if (width != owidth || height == oheight) {
+ if (width != owidth || height != oheight) {
//scale image
log.debug("Scaling emblem: " + owidth + "x" + oheight + " to " + width + "x" + height);
result = new BufferedImage(width, height, img.getType() == 0 ? BufferedImage.TYPE_INT_ARGB : img.getType());