Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2020-05-20 12:48:29 -0400
committerAndrey Loskutov2020-05-26 07:03:15 -0400
commitbafd10404c2982b2b5b5e75b583e4839b54288d6 (patch)
tree0fba6cb7367e3aabc22cd0831a21a2e7cce07350
parent68dac2b31c95dd12c485fe519da1f04ed284ff0b (diff)
downloadeclipse.platform.swt-bafd10404c2982b2b5b5e75b583e4839b54288d6.tar.gz
eclipse.platform.swt-bafd10404c2982b2b5b5e75b583e4839b54288d6.tar.xz
eclipse.platform.swt-bafd10404c2982b2b5b5e75b583e4839b54288d6.zip
Bug 563407 - Icons from disabled CommandContributionItem are invisible
Change-Id: I1ffeb554724c4908de7031ffdb281a6cff1feb09 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
index 894838e1a8..708874b4d4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
@@ -1113,7 +1113,7 @@ public void setImage (Image image) {
checkWidget();
if ((style & SWT.SEPARATOR) != 0) return;
super.setImage (image);
- if (!enabled && disabledImage != image) {
+ if (!enabled && disabledImage != image && disabledImage != null) {
return;
}
_setImage(image);

Back to the top