diff options
author | Silenio Quarti <silenio> | 2010-07-28 14:07:59 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2010-07-28 14:07:59 +0000 |
commit | 62f61163defb9c9c2b32c051dd3fb5378c8f2380 (patch) | |
tree | ef2a30e3f4445989e8c1391d75432ff3503de355 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java | |
parent | 8cb9ad47adde85f66cc970bf25839813f5d1c9c1 (diff) | |
download | eclipse.platform.swt-62f61163defb9c9c2b32c051dd3fb5378c8f2380.tar.gz eclipse.platform.swt-62f61163defb9c9c2b32c051dd3fb5378c8f2380.tar.xz eclipse.platform.swt-62f61163defb9c9c2b32c051dd3fb5378c8f2380.zip |
Bug 318782 - [DataBinding] StringIndexOutOfBoundsException exception when clearing a Text with SWT.SEARCH
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java index c87d7cdf7b..d8c0dd1e50 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java @@ -647,6 +647,7 @@ int /*long*/ gtk_commit (int /*long*/ imContext, int /*long*/ text) { int /*long*/ gtk_delete_text (int /*long*/ widget, int /*long*/ start_pos, int /*long*/ end_pos) { if (!hooks (SWT.Verify) && !filters (SWT.Verify)) return 0; + if (end_pos == -1) end_pos = OS.g_utf8_strlen (OS.gtk_entry_get_text (handle), -1); String newText = verifyText ("", (int)/*64*/start_pos, (int)/*64*/end_pos); if (newText == null) { OS.g_signal_stop_emission_by_name (handle, OS.delete_text); |