summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java
index 4992ef1a..576c1216 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java
@@ -346,8 +346,7 @@ public abstract class MainBarButton extends Canvas {
e.gc.setForeground(current);
} else {
int imgx = (width - height) / 2;
- Image tmp = new Image(getDisplay(), this.image.getImageData()
- .scaledTo(height, height));
+ Image tmp = new Image(getDisplay(), this.image.getImageData());
e.gc.drawImage(tmp, imgx, 0);
}