summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java
index b1f53c27..1d8f2aa7 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PositioningState.java
@@ -154,8 +154,15 @@ public class PositioningState extends State {
setNextState(new OpenState(this.stateMachine));
}
return;
+ }
+ }
+
+ if (status.getSignaturePosition() == null) {
+ PositioningComposite position = null;
+ try {
+ position = this.getPositioningComposite(this.document);
} catch(Exception ex) {
- log.error("Failed to create composite (seems like a mac ...)", ex); //$NON-NLS-1$
+ log.error("Failed to create composite (probably a mac...)", ex); //$NON-NLS-1$
ErrorDialog dialog = new ErrorDialog(
this.stateMachine.getGUIProvider().getMainShell(),
Messages.getString("error.PositioningNotPossible"), BUTTONS.OK); //$NON-NLS-1$
@@ -164,10 +171,6 @@ public class PositioningState extends State {
this.setNextState(new BKUSelectionState(this.stateMachine));
return;
}
- }
-
- if (status.getSignaturePosition() == null) {
- PositioningComposite position = this.getPositioningComposite(this.document);
this.stateMachine.getGUIProvider().display(position);