diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:37:06 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:37:06 +0000 |
commit | ce47ba7bd6b5d558a0f19454028f9b21c233926a (patch) | |
tree | a6178eb8f4b3f76b78c4e7bbe3c426f7d93f2557 /trunk/pdf-over-gui/src/main/java/at | |
parent | 74338c719f6e983ea0d01362b7aaeabff4b45725 (diff) | |
download | pdf-over-ce47ba7bd6b5d558a0f19454028f9b21c233926a.tar.gz pdf-over-ce47ba7bd6b5d558a0f19454028f9b21c233926a.tar.bz2 pdf-over-ce47ba7bd6b5d558a0f19454028f9b21c233926a.zip |
Fix scrollbar max
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12776 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 4 |
1 files changed, 2 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 ef0177c5..8376e353 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 @@ -313,13 +313,13 @@ public class PositioningComposite extends StateComposite { PositioningComposite.this.btnNewPage.setText( Messages.getString("positioning.newPage")); //$NON-NLS-1$ PositioningComposite.this.btnNewPage.setSelection(false); - PositioningComposite.this.scrollbar.setMaximum(numPages); + PositioningComposite.this.scrollbar.setMaximum(numPages + 1); } else if ((previousPage <= numPages) && (currentPage > numPages)) { // Go to new page PositioningComposite.this.btnNewPage.setText( Messages.getString("positioning.removeNewPage")); //$NON-NLS-1$ PositioningComposite.this.btnNewPage.setSelection(true); - PositioningComposite.this.scrollbar.setMaximum(numPages + 1); + PositioningComposite.this.scrollbar.setMaximum(numPages + 2); } PositioningComposite.this.scrollbar.setSelection(currentPage); PositioningComposite.this.lblPage.setText(String.format( |