summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:14:49 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:14:49 +0000
commitb37e66c8906d2edb0b457505e4122f62ad681791 (patch)
tree1ddbfa678f82f977ae1e2d2060b43605c319fb3f /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
parent4ba3799ddddb6eeb3e74760b3d90171048d8723c (diff)
downloadmocca-b37e66c8906d2edb0b457505e4122f62ad681791.tar.gz
mocca-b37e66c8906d2edb0b457505e4122f62ad681791.tar.bz2
mocca-b37e66c8906d2edb0b457505e4122f62ad681791.zip
Merge branch 'master' of git@abyss:12PDF-OVER-4.0.git
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@219 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
index d612f3c9..c7e1b7b7 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
@@ -173,8 +173,13 @@ public class PositioningComposite extends StateComposite {
.map(FileChannel.MapMode.READ_ONLY, 0, chan.size());
chan.close();
rafile.close();
-
- this.pdf = new PDFFile(buf);
+ try
+ {
+ this.pdf = new PDFFile(buf);
+ }
+ catch (IOException e) {
+ throw new IOException(Messages.getString("error.MayNotBeAPDF"), e); //$NON-NLS-1$
+ }
if (this.viewer == null) {
this.viewer = new SignaturePanel(this.pdf);
this.frame.add(this.viewer);