summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:37:01 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:37:01 +0000
commitcd95137c0f7e5fb37765d7148eac78ee3754bc67 (patch)
tree8821546a2935cccfde3f7e8f17829c77a0dc9cd1
parent2ee9d2d09aaa6bdca33978c90d1717bb0fde233d (diff)
downloadpdf-over-cd95137c0f7e5fb37765d7148eac78ee3754bc67.tar.gz
pdf-over-cd95137c0f7e5fb37765d7148eac78ee3754bc67.tar.bz2
pdf-over-cd95137c0f7e5fb37765d7148eac78ee3754bc67.zip
Threading issues
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12761 3a0b52a2-8410-0410-bc02-ff6273a87459
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java8
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);
}