summaryrefslogtreecommitdiff
path: root/pdf-over-signator/src/main/java/at/asit/pdfover/signator
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-signator/src/main/java/at/asit/pdfover/signator')
-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());