From cca5c04e7983611bbbab8e2dcb907376f76d25a4 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:10:39 +0000 Subject: Threading issues git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@175 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../java/at/asit/pdfover/gui/composites/PositioningComposite.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pdf-over-gui/src') 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 02cf6d48..b7ed647d 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 @@ -269,10 +269,14 @@ public class PositioningComposite extends StateComposite { this.getDisplay().syncExec(new Runnable() { @Override public void run() { - PositioningComposite.this.scrollbar.setSelection(PositioningComposite.this.currentPage); + PositioningComposite.this.scrollbar.setSelection( + PositioningComposite.this.currentPage); + PositioningComposite.this.lblPage.setText(String.format( + "Page %d of %d", + PositioningComposite.this.currentPage, + PositioningComposite.this.numPages)); } }); - this.lblPage.setText(String.format("Page %d of %d", page, this.numPages)); this.viewer.showPage(page); } -- cgit v1.2.3