summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2003-12-05 19:45:01 +0000
committerGrant Gayed <ggayed>2003-12-05 19:45:01 +0000
commit077a7d19c0fed3a4915786dc79155de9b4601a4d (patch)
tree6964819c8a333b4210b9b7c77df8d987d7b7c9d0 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java
parentb8f738e4a2bba8bedd7b8fa6bd83bd041997e138 (diff)
downloadeclipse.platform.swt-077a7d19c0fed3a4915786dc79155de9b4601a4d.tar.gz
eclipse.platform.swt-077a7d19c0fed3a4915786dc79155de9b4601a4d.tar.xz
eclipse.platform.swt-077a7d19c0fed3a4915786dc79155de9b4601a4d.zip
45989
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java
index bfae826882..75ba9d8a33 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ScrollBar.java
@@ -757,7 +757,6 @@ public void setThumb (int value) {
int hwnd = hwndScrollBar (), type = scrollBarType ();
info.fMask = OS.SIF_PAGE | OS.SIF_RANGE | OS.SIF_DISABLENOSCROLL;
OS.GetScrollInfo (hwnd, type, info);
- if (info.nMax - info.nMin - value < 0) return;
info.nPage = value;
if (info.nPage != 0) info.nPage++;
OS.SetScrollInfo (hwnd, type, info, true);
@@ -828,7 +827,6 @@ public void setValues (int selection, int minimum, int maximum, int thumb, int i
if (minimum < 0) return;
if (maximum < 0) return;
if (thumb < 1) return;
- if (maximum - minimum - thumb < 0) return;
if (increment < 1) return;
if (pageIncrement < 1) return;
this.increment = increment;