diff options
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |