Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2020-11-24 08:37:44 +0000
committerSravan Kumar Lakkimsetti2020-11-24 13:13:05 +0000
commit4f5f2dca6656f039d2c3b2fb58d44aa8302bcf20 (patch)
tree1eccd3f1a303d4ebbf8a9df066813710d333fc86
parent5aa4ed91fc0786f81ac2e4b7e4879ab670aaad1a (diff)
downloadeclipse.platform.swt-4f5f2dca6656f039d2c3b2fb58d44aa8302bcf20.tar.gz
eclipse.platform.swt-4f5f2dca6656f039d2c3b2fb58d44aa8302bcf20.tar.xz
eclipse.platform.swt-4f5f2dca6656f039d2c3b2fb58d44aa8302bcf20.zip
Bug 564885 - [Dark] Toolbar has a white line
Added error correction to fillGradientRectangle method to fill the background completely Change-Id: If749204d426d808eef10df24ab4510bc3d8608f7 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java
index deb4a1d68b..4f9758f1da 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java
@@ -1991,7 +1991,7 @@ public void fillGradientRectangle(int x, int y, int width, int height, boolean v
NSGradient gradient = ((NSGradient)new NSGradient().alloc()).initWithStartingColor(startingColor, endingColor);
NSRect rect = new NSRect();
rect.x = x;
- rect.y = y;
+ rect.y = y < 0 ? 0 : y;
rect.width = width;
rect.height = height;
gradient.drawInRect(rect, vertical ? 90 : 0);

Back to the top