Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Kubitz2021-12-31 17:08:26 +0000
committerRolf Theunissen2022-01-02 15:21:54 +0000
commit5277dbf5870e328fc6450534d2d6a453636d20dd (patch)
tree7721219c5cd10233f9f13a6dc376945881df4215
parentfbf8c8fd35f42541d9bacfe912699925e1f231e0 (diff)
downloadeclipse.platform.swt-5277dbf5870e328fc6450534d2d6a453636d20dd.tar.gz
eclipse.platform.swt-5277dbf5870e328fc6450534d2d6a453636d20dd.tar.xz
eclipse.platform.swt-5277dbf5870e328fc6450534d2d6a453636d20dd.zip
Bug 576287 - fix CTabFolder gradient backgroundImage after wrap/unrwap
Change-Id: I936192b4375aae8dfd721139130eb9025eeba622 Signed-off-by: Joerg Kubitz <jkubitz-eclipse@gmx.de> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/189216 Tested-by: Rolf Theunissen <rolf.theunissen@gmail.com> Reviewed-by: Rolf Theunissen <rolf.theunissen@gmail.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
index 154d27fa8d..022b5f72eb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
@@ -3933,6 +3933,7 @@ void updateBkImages(boolean colorChanged) {
int height = this.getSize().y;
boolean wrapped = onBottom ? bounds.y + bounds.height < height - tabHeight : bounds.y > tabHeight;
if (wrapped || gradientColors == null) {
+ bkImageBounds[i]=null;
control.setBackgroundImage(null);
control.setBackground(getBackground());
} else {

Back to the top