summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui')
-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);