Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/AnnotationsConfigurationBlock.java')
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/AnnotationsConfigurationBlock.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/AnnotationsConfigurationBlock.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/AnnotationsConfigurationBlock.java
index bb6c39b922d..45ed2ab518b 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/AnnotationsConfigurationBlock.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/AnnotationsConfigurationBlock.java
@@ -609,9 +609,9 @@ class AnnotationsConfigurationBlock implements IPreferenceConfigurationBlock {
// scale down to icon size
copy= new Image(Display.getCurrent(), data.scaledTo(SIZE, SIZE));
- } else if (data.height == SIZE && data.width == SIZE) {
- // nothing to scale, simply copy
- copy= new Image(image.getDevice(), image, SWT.IMAGE_COPY);
+ } else if (data.height == SIZE && data.width == SIZE) {
+ // nothing to scale, return the image
+ return image;
} else {
// don't scale up, but rather copy into the middle and mark everything else transparent

Back to the top