Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2014-07-15 19:55:21 +0000
committerAlexander Kurtakov2014-07-15 19:55:21 +0000
commit15465cdeff2ff1f15c7b5ecf87ebf65eeaef0dae (patch)
treed99fc77c9dcb3db1e37c092159d6e041fd875fcf
parentc23d09730efa4c132e1ceeb0abf813abd77b5599 (diff)
downloadeclipse.platform.swt-15465cdeff2ff1f15c7b5ecf87ebf65eeaef0dae.tar.gz
eclipse.platform.swt-15465cdeff2ff1f15c7b5ecf87ebf65eeaef0dae.tar.xz
eclipse.platform.swt-15465cdeff2ff1f15c7b5ecf87ebf65eeaef0dae.zip
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>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java2
1 files changed, 1 insertions, 1 deletions
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 6589c9e6a6..56021160f1 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 @@ public void remove (int start, int end) {
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);
}

Back to the top