diff options
author | Silenio Quarti <silenio> | 2004-05-28 15:17:40 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2004-05-28 15:17:40 +0000 |
commit | 43c956ef514bf7ec3a97ee50ba5a6bb142ded1b7 (patch) | |
tree | 40823b726454b17af7360cf0f9aa1f41dc1a5339 | |
parent | 9672100f970522768f373f3dc9eb24310987628f (diff) | |
download | eclipse.platform.swt-43c956ef514bf7ec3a97ee50ba5a6bb142ded1b7.tar.gz eclipse.platform.swt-43c956ef514bf7ec3a97ee50ba5a6bb142ded1b7.tar.xz eclipse.platform.swt-43c956ef514bf7ec3a97ee50ba5a6bb142ded1b7.zip |
*** empty log message ***
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java index b294dcc841..d6d36c91ec 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java @@ -669,9 +669,7 @@ public int getBorderWidth () { public Rectangle getBounds () { checkWidget(); Rect rect = getControlBounds (topHandle ()); - int width = Math.max(0, rect.right - rect.left); - int height = Math.max(0, rect.bottom - rect.top); - return new Rectangle (rect.left, rect.top, width, height); + return new Rectangle (rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top); } int getDrawCount (int control) { |