summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2008-11-03 17:28:59 +0000
committerGrant Gayed <ggayed>2008-11-03 17:28:59 +0000
commit31aebcd1b40b4703c2aa8f321b7d2c005214542a (patch)
treecda3b56b9c8bbfdf3520504f317ad12725fafe61 /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java
parent83265ffec075c564027fb30b75cccdc93ee98c40 (diff)
downloadeclipse.platform.swt-31aebcd1b40b4703c2aa8f321b7d2c005214542a.tar.gz
eclipse.platform.swt-31aebcd1b40b4703c2aa8f321b7d2c005214542a.tar.xz
eclipse.platform.swt-31aebcd1b40b4703c2aa8f321b7d2c005214542a.zip
replace Math.ceil() uses with (int)(0.5f + ...
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java
index 40b645395d..8e9d0c824f 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java
@@ -180,8 +180,8 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
} else {
size = textView.cell ().cellSize ();
}
- width = (int)Math.ceil (size.width);
- height = (int)Math.ceil (size.height);
+ width = (int)(0.5f + size.width);
+ height = (int)(0.5f + size.height);
}
}
if (wHint != SWT.DEFAULT) width = wHint;