diff options
author | Silenio Quarti <silenio> | 2003-08-11 18:15:42 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2003-08-11 18:15:42 +0000 |
commit | b12d730abe1b92df56f8e127eea087c0889c4d64 (patch) | |
tree | 1d45d43c0a457dc0407b73e94c67ce00e9f8ad99 | |
parent | 475d6ed28099c8b3b22a3306f7bfc28ce6be74f7 (diff) | |
download | eclipse.platform.swt-b12d730abe1b92df56f8e127eea087c0889c4d64.tar.gz eclipse.platform.swt-b12d730abe1b92df56f8e127eea087c0889c4d64.tar.xz eclipse.platform.swt-b12d730abe1b92df56f8e127eea087c0889c4d64.zip |
41111
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Canvas.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Canvas.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Canvas.java index c738086701..9578643dab 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Canvas.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Canvas.java @@ -175,8 +175,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); } } |