From 06a6949fd847fdbf11991346757eae9ebc61208a Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:04:38 +0000 Subject: Use getDisplay instead of default git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@115 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf-over-gui/src/main/java/at') 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 9528dd1e..922e278b 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 @@ -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