From 31aebcd1b40b4703c2aa8f321b7d2c005214542a Mon Sep 17 00:00:00 2001 From: Grant Gayed Date: Mon, 3 Nov 2008 17:28:59 +0000 Subject: replace Math.ceil() uses with (int)(0.5f + ... --- .../Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java') 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; -- cgit