summaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:54 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:54 +0000
commit0d8f4da43d19ea8e0fb520c5c5d29caa51707251 (patch)
treef4ab9ce01628b410ce9058adff7eb905f9b4c652 /trunk
parent00d435b78f69393f4df1b0ad5af066ad3e21e46e (diff)
downloadpdf-over-0d8f4da43d19ea8e0fb520c5c5d29caa51707251.tar.gz
pdf-over-0d8f4da43d19ea8e0fb520c5c5d29caa51707251.tar.bz2
pdf-over-0d8f4da43d19ea8e0fb520c5c5d29caa51707251.zip
Fix window centering
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12742 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
index be601ce2..a69d7096 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
@@ -175,7 +175,7 @@ public class MainWindow {
this.shell = new Shell();
getShell().setSize(550, 768);
try {
- Display display = new Display();
+ Display display = Display.getCurrent();
Monitor primary = display.getPrimaryMonitor();
Rectangle bounds = primary.getBounds();
Rectangle main = this.shell.getBounds();