summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/pdf-over-gui')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java4
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(