summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2009-05-19 19:59:37 +0000
committerSilenio Quarti <silenio>2009-05-19 19:59:37 +0000
commit0bd40b87105c62acb1c4b13c39c51480544cb139 (patch)
tree7035ddd19f89496af7042357a2f909b4d6b817db
parent3ac7858815be503d613d90304ed2d74015c5c969 (diff)
downloadeclipse.platform.swt-0bd40b87105c62acb1c4b13c39c51480544cb139.tar.gz
eclipse.platform.swt-0bd40b87105c62acb1c4b13c39c51480544cb139.tar.xz
eclipse.platform.swt-0bd40b87105c62acb1c4b13c39c51480544cb139.zip
276683 - Tree item icons drawn into next column
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java1
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
index fdf7a4a061..eb41cdf301 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
@@ -999,6 +999,7 @@ void drawInteriorWithFrame_inView (int /*long*/ id, int /*long*/ sel, NSRect rec
srcRect.width = size.width;
srcRect.height = size.height;
context.saveGraphicsState();
+ NSBezierPath.bezierPathWithRect(rect).setClip();
NSAffineTransform transform = NSAffineTransform.transform();
transform.scaleXBy(1, -1);
transform.translateXBy(0, -(destRect.height + 2 * destRect.y));
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
index 5fd96f1ccb..3f43564c8e 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
@@ -1051,6 +1051,7 @@ void drawInteriorWithFrame_inView (int /*long*/ id, int /*long*/ sel, NSRect rec
srcRect.width = size.width;
srcRect.height = size.height;
context.saveGraphicsState();
+ NSBezierPath.bezierPathWithRect(rect).setClip();
NSAffineTransform transform = NSAffineTransform.transform();
transform.scaleXBy(1, -1);
transform.translateXBy(0, -(destRect.height + 2 * destRect.y));