summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-03 14:09:46 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-03 14:09:46 +0200
commit8ed8c7ff59cf052aaab1fbe07deca55aa1dcacc0 (patch)
tree858249b882cccd070ecf918fd9b3971ff1e03def /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration
parent761431947a2c6bc1e14ea848b97eee0f9a950171 (diff)
downloadpdf-over-8ed8c7ff59cf052aaab1fbe07deca55aa1dcacc0.tar.gz
pdf-over-8ed8c7ff59cf052aaab1fbe07deca55aa1dcacc0.tar.bz2
pdf-over-8ed8c7ff59cf052aaab1fbe07deca55aa1dcacc0.zip
exterminate SignaturePlaceholderCache
(it does not offer any measurable benefit)
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
index 3d351292..34155668 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
@@ -15,6 +15,7 @@
*/
package at.asit.pdfover.gui.composites.configuration;
+import java.awt.image.BufferedImage;
// Imports
import java.io.File;
import java.io.IOException;
@@ -62,7 +63,6 @@ import at.asit.pdfover.gui.controls.ErrorDialog;
import at.asit.pdfover.gui.controls.ErrorMarker;
import at.asit.pdfover.gui.exceptions.InvalidEmblemFile;
import at.asit.pdfover.gui.utils.ImageConverter;
-import at.asit.pdfover.gui.utils.SignaturePlaceholderCache;
import at.asit.pdfover.gui.workflow.config.ConfigurationManager;
import at.asit.pdfover.gui.workflow.config.ConfigurationDataInMemory;
import at.asit.pdfover.gui.workflow.states.State;
@@ -434,7 +434,7 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
logo = new ImageData(image);
param.emblem = new Emblem(image);
}
- img = SignaturePlaceholderCache.getSWTPlaceholder(param);
+ img = ImageConverter.convertToSWT((BufferedImage) param.getPlaceholder());
} catch (Exception e) {
log.error("Failed to load image for display...", e);
}