Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2008-06-09 21:36:42 +0000
committerSilenio Quarti2008-06-09 21:36:42 +0000
commit71999d925e580ef183b2b8074af64bf93ff7a69d (patch)
tree6722b7e2ea0d07d1b22953e7ec784d21247b91bd
parent6687475724d9098125bacb1518a341736c8eafd3 (diff)
downloadeclipse.platform.swt-71999d925e580ef183b2b8074af64bf93ff7a69d.tar.gz
eclipse.platform.swt-71999d925e580ef183b2b8074af64bf93ff7a69d.tar.xz
eclipse.platform.swt-71999d925e580ef183b2b8074af64bf93ff7a69d.zip
*** empty log message ***
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
index 7a4adca3b1..d61acf97ff 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
@@ -250,6 +250,9 @@ void createHandle () {
void drawRect (int id, NSRect rect) {
if ((state & CANVAS) != 0) {
if ((style & SWT.NO_BACKGROUND) == 0) {
+ Control control = findBackgroundControl();
+ if (control == null) control = this;
+ Color background = control.background;
if (background != null && !background.isDisposed ()) {
float [] color = background.handle;
NSGraphicsContext context = NSGraphicsContext.currentContext();

Back to the top