From cd95137c0f7e5fb37765d7148eac78ee3754bc67 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 31 Oct 2012 16:37:01 +0000 Subject: Threading issues git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12761 3a0b52a2-8410-0410-bc02-ff6273a87459 --- .../java/at/asit/pdfover/gui/composites/PositioningComposite.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'trunk') 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 02cf6d48..b7ed647d 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 @@ -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