From 001c54c2bfa315db879d87d21d1a6cc5c7fd2d0d Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 31 Oct 2012 16:36:38 +0000 Subject: Use getDisplay instead of default git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12701 3a0b52a2-8410-0410-bc02-ff6273a87459 --- .../main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trunk/pdf-over-gui') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java index 9528dd1e..922e278b 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java @@ -178,7 +178,7 @@ public class PositioningComposite extends StateComposite { void showPage(int page) { this.currentPage = page; - Display.getDefault().syncExec(new Runnable() { + this.getDisplay().syncExec(new Runnable() { @Override public void run() { PositioningComposite.this.scrollbar.setSelection(PositioningComposite.this.currentPage); -- cgit v1.2.3