diff options
author | Grant Gayed <ggayed> | 2004-05-20 19:07:15 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2004-05-20 19:07:15 +0000 |
commit | 834d97da43322ae8e09dc06ce162afd84bdfc21a (patch) | |
tree | 1f4aabc6d4190445e170761820d49e76df9cdf15 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java | |
parent | 56a6b7bac171503219cd95fd5425fbf79eb755db (diff) | |
download | eclipse.platform.swt-834d97da43322ae8e09dc06ce162afd84bdfc21a.tar.gz eclipse.platform.swt-834d97da43322ae8e09dc06ce162afd84bdfc21a.tar.xz eclipse.platform.swt-834d97da43322ae8e09dc06ce162afd84bdfc21a.zip |
62528
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java index 5f20c2ee79..e25d0e5edd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java @@ -281,10 +281,12 @@ public boolean getStippled () { } void moveRectangles (int xChange, int yChange) { - if (xChange < 0 && ((style & SWT.LEFT) == 0)) return; - if (xChange > 0 && ((style & SWT.RIGHT) == 0)) return; - if (yChange < 0 && ((style & SWT.UP) == 0)) return; - if (yChange > 0 && ((style & SWT.DOWN) == 0)) return; + if (xChange < 0 && ((style & SWT.LEFT) == 0)) xChange = 0; + if (xChange > 0 && ((style & SWT.RIGHT) == 0)) xChange = 0; + if (yChange < 0 && ((style & SWT.UP) == 0)) yChange = 0; + if (yChange > 0 && ((style & SWT.DOWN) == 0)) yChange = 0; + if (xChange == 0 && yChange == 0) return; + bounds.x += xChange; bounds.y += yChange; for (int i = 0; i < rectangles.length; i++) { rectangles [i].x += xChange; rectangles [i].y += yChange; |