summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2021-10-14 15:33:34 +0200
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2021-10-14 15:33:34 +0200
commitaaeeda19346f2fb1f7a2d0b15f0f16fc345d7cd7 (patch)
treef3ba938120f77f6e68277e720390ca59a8428116
parentdd6f9d619008b4e3bcd5b163a25d3cf91836bf03 (diff)
downloadpdf-over-aaeeda19346f2fb1f7a2d0b15f0f16fc345d7cd7.tar.gz
pdf-over-aaeeda19346f2fb1f7a2d0b15f0f16fc345d7cd7.tar.bz2
pdf-over-aaeeda19346f2fb1f7a2d0b15f0f16fc345d7cd7.zip
fixed problem with the about pdf-over text field
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java1
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java13
2 files changed, 10 insertions, 4 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java
index 14ac14a9..c07b4dbf 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java
@@ -355,6 +355,7 @@ public class ConfigurationComposite extends StateComposite {
fd_lnkDataProtection.right = new FormAttachment(100, -5);
fd_lnkDataProtection.left = new FormAttachment(0, 5);
fd_lnkDataProtection.top = new FormAttachment(this.lblDataProtection, 10);
+ fd_lnkDataProtection.bottom = new FormAttachment(100, -5);
fd_lnkDataProtection.width = 100;
fd_lnkDataProtection.height = 120;
this.lnkDataProtection.setLayoutData(fd_lnkDataProtection);
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java
index b0c5de85..24b33e84 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java
@@ -152,13 +152,18 @@ public class PrepareConfigurationState extends State {
Locale loc = config.getSignatureLocale();
String note_old = Messages.getString("simple_config.Note_Default_Old", loc); //$NON-NLS-1$
- if (note.equals(note_old)) {
- String profile = config.getSignatureProfile();
- note = Profile.getSignatureBlockNoteTextAccordingToProfile(Profile.getProfile(profile), config.getLocale());
- getStateMachine().getConfigManipulator().setSignatureNote(note);
+ if (!note.equals(note_old)) {
+ updateSignatureNoteField(config);
}
}
+ private void updateSignatureNoteField(ConfigProvider config){
+ String note;
+ String profile = config.getSignatureProfile();
+ note = Profile.getSignatureBlockNoteTextAccordingToProfile(Profile.getProfile(profile), config.getLocale());
+ getStateMachine().getConfigManipulator().setSignatureNote(note);
+ }
+
private void initializeFromArguments(String[] args, ArgumentHandler handler)
throws InitializationException {
handler.handleArguments(args);