summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2003-07-16 14:30:01 +0000
committerGrant Gayed <ggayed>2003-07-16 14:30:01 +0000
commit93a133496c4c6f4903f52273654fc42d66092cb1 (patch)
tree25b9110cf48218cfb56171c8ee308bf98748d8b9
parent1b9e090d3068fe53e0efa1ea38f29c19ce034f10 (diff)
downloadeclipse.platform.swt-93a133496c4c6f4903f52273654fc42d66092cb1.tar.gz
eclipse.platform.swt-93a133496c4c6f4903f52273654fc42d66092cb1.tar.xz
eclipse.platform.swt-93a133496c4c6f4903f52273654fc42d66092cb1.zip
38777
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ColorDialog.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ColorDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ColorDialog.java
index c8b259e80c..d87cb5aefb 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ColorDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ColorDialog.java
@@ -104,8 +104,8 @@ void createChildren() {
GridLayout layout = new GridLayout (2, false);
dialog.setLayout(layout);
- int colorChooserWidth = colorSwatchExtent * colorGrid.length;
- int colorChooserHeight = colorSwatchExtent * colorGrid[0].length;
+ int colorChooserWidth = colorSwatchExtent * colorGrid.length - 1;
+ int colorChooserHeight = colorSwatchExtent * colorGrid[0].length - 1;
colorsCanvas = new Canvas(dialog, SWT.BORDER);
GridData data = new GridData ();
data.widthHint = colorChooserWidth;