diff options
author | Steve Northover <steve> | 2003-08-11 18:17:43 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2003-08-11 18:17:43 +0000 |
commit | 44abc67f038196ac4c342f921eaf119ad499df0a (patch) | |
tree | 2690029a489dc3cb32f342c00772e720c5409d0c | |
parent | b12d730abe1b92df56f8e127eea087c0889c4d64 (diff) | |
download | eclipse.platform.swt-44abc67f038196ac4c342f921eaf119ad499df0a.tar.gz eclipse.platform.swt-44abc67f038196ac4c342f921eaf119ad499df0a.tar.xz eclipse.platform.swt-44abc67f038196ac4c342f921eaf119ad499df0a.zip |
41111
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java index be3529b713..a1f43e40ae 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java @@ -166,8 +166,8 @@ public void scroll (int destX, int destY, int x, int y, int width, int height, b for (int i=0; i<children.length; i++) { Control child = children [i]; Rectangle rect = child.getBounds (); - if (Math.min(x + width, rect.x + rect.width) > Math.max (x, rect.x) && - Math.min(y + height, rect.y + rect.height) > Math.max (y, rect.y)) { + if (Math.min(x + width, rect.x + rect.width) >= Math.max (x, rect.x) && + Math.min(y + height, rect.y + rect.height) >= Math.max (y, rect.y)) { child.setLocation (rect.x + deltaX, rect.y + deltaY); } } |