From fea0ec7e9dc9652fac38ed37d669dbd30c9ee1df Mon Sep 17 00:00:00 2001 From: Carolyn MacLeod Date: Thu, 7 Feb 2013 12:29:48 -0500 Subject: Bug 234649 - Composite with scrollbar won't inherit background from "themed" ancestor (tabfolder) --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java index d1a6cf1457..632a44a63a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java @@ -306,7 +306,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) { void createHandle () { super.createHandle (); state |= CANVAS; - if ((style & (SWT.H_SCROLL | SWT.V_SCROLL)) == 0) { + if ((style & (SWT.H_SCROLL | SWT.V_SCROLL)) == 0 || findThemeControl () == parent) { state |= THEME_BACKGROUND; } if ((style & SWT.TRANSPARENT) != 0) { -- cgit