Bug 439655 - GDK critical in Combo.remove(start,end)
It's a typo in Bug 414643 using index of active selection always instead
of the variable i for which index to remove.
Change-Id: Ie405100dd2e4b5f06494029fc93b9d93b181c8dd
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
index 6589c9e..5602116 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
@@ -1660,7 +1660,7 @@
if (start <= index && index <= end) clearText();
for (int i = end; i >= start; i--) {
if (OS.GTK3) {
- OS.gtk_combo_box_text_remove(handle, index);
+ OS.gtk_combo_box_text_remove(handle, i);
} else {
OS.gtk_combo_box_remove_text (handle, i);
}