Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2008-06-06 19:21:00 +0000
committerSilenio Quarti2008-06-06 19:21:00 +0000
commit23b791734315a810d5059b49e51351695c03721a (patch)
treef4a22e397bdd124727860006ed92d56bf82c0db4
parent44db0957d87cb491a85384855623a3380a72614e (diff)
downloadeclipse.platform.swt-23b791734315a810d5059b49e51351695c03721a.tar.gz
eclipse.platform.swt-23b791734315a810d5059b49e51351695c03721a.tar.xz
eclipse.platform.swt-23b791734315a810d5059b49e51351695c03721a.zip
*** empty log message ***
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java3
1 files changed, 1 insertions, 2 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 7b129f5bdb..6550be1d69 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
@@ -258,11 +258,10 @@ void drawRect (int id, NSRect rect) {
if ((state & CANVAS) != 0) {
if (background != null && !background.isDisposed ()) {
float [] color = background.handle;
- NSRect bounds = view.bounds();
NSGraphicsContext context = NSGraphicsContext.currentContext();
context.saveGraphicsState();
NSColor.colorWithDeviceRed(color [0], color [1], color [2], color [3]).setFill();
- NSBezierPath.fillRect(bounds);
+ NSBezierPath.fillRect(rect);
context.restoreGraphicsState();
}
}

Back to the top