diff options
author | Veronika Irvine <veronika> | 2004-02-12 19:08:52 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2004-02-12 19:08:52 +0000 |
commit | 155c56b5b9a7f28e7dfb59f29cc7f30ca5b76245 (patch) | |
tree | e7b1f0def5c23abe69466231230c86cf69f50e9a | |
parent | 45154c354caf5719e298c958a533a3a2de838dcd (diff) | |
download | eclipse.platform.swt-155c56b5b9a7f28e7dfb59f29cc7f30ca5b76245.tar.gz eclipse.platform.swt-155c56b5b9a7f28e7dfb59f29cc7f30ca5b76245.tar.xz eclipse.platform.swt-155c56b5b9a7f28e7dfb59f29cc7f30ca5b76245.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java index 6a8fc9a3d5..53b34d2b17 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableItem.java @@ -643,12 +643,12 @@ public void setFont (Font font){ if (font != null && font.isDisposed ()) { SWT.error (SWT.ERROR_INVALID_ARGUMENT); } - int newFont = -1; + int hFont = -1; if (font != null) { parent.customDraw = true; - newFont = font.handle; + hFont = font.handle; } - this.font = newFont; + this.font = hFont; redraw (); } @@ -678,10 +678,10 @@ public void setFont (int index, Font font) { } int count = Math.max (1, parent.getColumnCount ()); if (0 > index || index > count -1) return; - int newFont = -1; + int hFont = -1; if (font != null) { parent.customDraw = true; - newFont = font.handle; + hFont = font.handle; } if (cellFont == null) { int hwndHeader = OS.SendMessage (parent.handle, OS.LVM_GETHEADER, 0, 0); @@ -691,7 +691,7 @@ public void setFont (int index, Font font) { cellFont [i] = -1; } } - cellFont [index] = newFont; + cellFont [index] = hFont; redraw (); } /** |