diff options
author | Silenio Quarti | 2008-06-09 21:36:42 +0000 |
---|---|---|
committer | Silenio Quarti | 2008-06-09 21:36:42 +0000 |
commit | 71999d925e580ef183b2b8074af64bf93ff7a69d (patch) | |
tree | 6722b7e2ea0d07d1b22953e7ec784d21247b91bd | |
parent | 6687475724d9098125bacb1518a341736c8eafd3 (diff) | |
download | eclipse.platform.swt-71999d925e580ef183b2b8074af64bf93ff7a69d.tar.gz eclipse.platform.swt-71999d925e580ef183b2b8074af64bf93ff7a69d.tar.xz eclipse.platform.swt-71999d925e580ef183b2b8074af64bf93ff7a69d.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java | 3 |
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(); |