From 984b318cd8e54d2cd92f1b7ad19c05045decd855 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Wed, 3 Aug 2022 13:01:21 +0200 Subject: i am 98% confident that this was a typo --- pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf-over-signator/src/main/java/at/asit/pdfover') 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()); -- cgit v1.2.3