diff options
author | Markus Keller | 2011-05-17 09:48:46 +0000 |
---|---|---|
committer | Markus Keller | 2011-05-17 09:48:46 +0000 |
commit | a3c8209de15c12a31f27fbf6e85e512f5364659f (patch) | |
tree | c1fcffae44dcf29223f7aefdfaeb273427f5575f | |
parent | b0756f17f601b8a15aeb9ce53e121e754398c8f8 (diff) | |
download | eclipse.platform.text-a3c8209de15c12a31f27fbf6e85e512f5364659f.tar.gz eclipse.platform.text-a3c8209de15c12a31f27fbf6e85e512f5364659f.tar.xz eclipse.platform.text-a3c8209de15c12a31f27fbf6e85e512f5364659f.zip |
Bug 345180: [preferences] Black background for icons in Annotations Preference Pagev20110517-0800
-rw-r--r-- | org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/AnnotationsConfigurationBlock.java | 6 |
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 |