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