summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2004-05-27 21:37:50 +0000
committerVeronika Irvine <veronika>2004-05-27 21:37:50 +0000
commitdf1c9ed5219ce5a5cccf0ad8e9aeca095f448f4f (patch)
tree557109cbe1724c534592974e5f69e2813c41ec54
parent1e65defe233b6bb6d449d2d61af81263ce417ae0 (diff)
downloadeclipse.platform.swt-df1c9ed5219ce5a5cccf0ad8e9aeca095f448f4f.tar.gz
eclipse.platform.swt-df1c9ed5219ce5a5cccf0ad8e9aeca095f448f4f.tar.xz
eclipse.platform.swt-df1c9ed5219ce5a5cccf0ad8e9aeca095f448f4f.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java
index 6030111a68..23e836fcd4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java
@@ -400,11 +400,10 @@ void paint(Event event) {
if (text != "") { //$NON-NLS-1$
Rectangle bounds = row.getBounds(columnIndex);
Point extent = gc.stringExtent(text);
- TableColumn[] columns = table.getColumns();
// Temporary code - need a better way to determine table trim
String platform = SWT.getPlatform();
if ("win32".equals(platform)) { //$NON-NLS-1$
- if (table.getColumns().length == 0 || columnIndex == 0) {
+ if (table.getColumnCount() == 0 || columnIndex == 0) {
x += 2;
} else {
int alignmnent = column.getAlignment();
@@ -421,7 +420,7 @@ void paint(Event event) {
}
}
} else {
- if (table.getColumns().length == 0) {
+ if (table.getColumnCount() == 0) {
x += 5;
} else {
int alignmnent = column.getAlignment();