From 761431947a2c6bc1e14ea848b97eee0f9a950171 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Wed, 3 Aug 2022 13:55:35 +0200 Subject: correct signature profile in preview --- .../gui/composites/configuration/SimpleConfigurationComposite.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover') 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 e7754dfb..3d351292 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 @@ -423,6 +423,7 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { try { PdfAs4SignatureParameter param = new PdfAs4SignatureParameter(); + param.signatureProfileName = this.configurationContainer.getSignatureProfile().name(); if(this.configurationContainer.signatureNote != null && !this.configurationContainer.signatureNote.isEmpty()) { param.setProperty("SIG_NOTE", this.configurationContainer.signatureNote); } @@ -504,6 +505,8 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { if ((previous != null) && (txtSignatureNote.getText().equals(getDefaultSignatureBlockNoteTextFor(null, previous)))) txtSignatureNote.setText(getDefaultSignatureBlockNoteTextFor(null, selected)); + + updateSignatureBlockPreview(); } @@ -519,6 +522,8 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { } if (txtSignatureNote.getText().equals(getDefaultSignatureBlockNoteTextFor(oldProfile, null))) txtSignatureNote.setText(getDefaultSignatureBlockNoteTextFor(newProfile, null)); + + updateSignatureBlockPreview(); } String getDefaultSignatureBlockNoteTextFor(Profile profile, Locale locale){ @@ -543,6 +548,7 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { void processSignatureNoteChanged() { String note = this.txtSignatureNote.getText(); this.configurationContainer.signatureNote = note; + updateSignatureBlockPreview(); } /* -- cgit v1.2.3