diff options
author | Grant Gayed <ggayed> | 2003-12-09 16:21:34 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2003-12-09 16:21:34 +0000 |
commit | 964324761f80460fa80bcd0fcb79e1bc8e32f597 (patch) | |
tree | 29713861432a3b5033aae9722d75332a20f6e25a /bundles/org.eclipse.swt/Eclipse SWT/photon | |
parent | 8ee2cf5ec2e458c713211da4175fb7d318fb6953 (diff) | |
download | eclipse.platform.swt-964324761f80460fa80bcd0fcb79e1bc8e32f597.tar.gz eclipse.platform.swt-964324761f80460fa80bcd0fcb79e1bc8e32f597.tar.xz eclipse.platform.swt-964324761f80460fa80bcd0fcb79e1bc8e32f597.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/photon')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java index 1baa00fb49..2c1aac5a6a 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java @@ -724,11 +724,11 @@ int getTabWidth (int tabs) { */ public String getText (int start, int end) { checkWidget (); + if (start > end) return ""; String text = getText (); int length = text.length (); start = Math.max (0, start); end = Math.min (end, length - 1); - if (start > end) return ""; /* * NOTE: The current implementation uses substring () * which can reference a potentially large character |