Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2015-03-09 13:09:07 +0000
committerLars Vogel2015-03-09 13:09:07 +0000
commitb433f9864fcc079ec87ce1d068360c4afb2dd1d7 (patch)
treec117aa99821d5a6f9f4ceaddc0f8614fb7df12c8
parent3c4196ac5df91790b55fb4ba0dfe59dc4b4809f7 (diff)
downloadeclipse.platform.ui-b433f9864fcc079ec87ce1d068360c4afb2dd1d7.tar.gz
eclipse.platform.ui-b433f9864fcc079ec87ce1d068360c4afb2dd1d7.tar.xz
eclipse.platform.ui-b433f9864fcc079ec87ce1d068360c4afb2dd1d7.zip
Bug 461688 - [Tests] org.eclipse.swt.graphics.RGBA cannot be cast to
org.eclipse.swt.graphics.RGB Change- Change-Id: I839e96f2ddd167c63f25159569ad361995d3f325 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/properties/GradientBackgroundListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/properties/GradientBackgroundListener.java b/bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/properties/GradientBackgroundListener.java
index dfe30ce0dd6..c071e150c45 100644
--- a/bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/properties/GradientBackgroundListener.java
+++ b/bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/properties/GradientBackgroundListener.java
@@ -165,7 +165,7 @@ public class GradientBackgroundListener implements Listener {
for (Iterator<?> iterator = grad.getRGBs().iterator(); iterator
.hasNext();) {
RGBA rgba = (RGBA) iterator.next();
- Color color = new Color(control.getDisplay(), rgba.rgb.red, rgba.rgb.green, rgba.rgb.blue);
+ Color color = new Color(control.getDisplay(), rgba);
colors.add(color);
}
fillGradient(gc, new Rectangle(0, 0, x, y), colors,

Back to the top