From 3e6963a6070417e2da4b03fc9a39558e63e49768 Mon Sep 17 00:00:00 2001 From: Andreas Abraham Date: Mon, 12 Jul 2021 14:39:23 +0200 Subject: Code Cleanup --- .../java/at/asit/pdfover/gui/composites/PositioningComposite.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit') 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 da004747..0a5e566e 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 @@ -326,13 +326,7 @@ public class PositioningComposite extends StateComposite { private SelectionListener selectionListener = new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { - System.out.println("selection: " + PositioningComposite.this.scrollbar.getSelection()); - int selection = PositioningComposite.this.scrollbar.getSelection(); - if (selection < 0) { - selection = 0; - System.out.println("corrected selecttion to: " + selection); - } - PositioningComposite.this.showPage(selection); + PositioningComposite.this.showPage(PositioningComposite.this.scrollbar.getSelection()); } }; -- cgit v1.2.3