diff options
author | Silenio Quarti <silenio> | 2002-07-26 21:13:18 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2002-07-26 21:13:18 +0000 |
commit | 978e92a7a86546309cdd42c1561b61a424319609 (patch) | |
tree | c9d5b8a5ede4e7968058be70c49ac1ef52e770ec /bundles/org.eclipse.swt/Eclipse SWT/gtk | |
parent | 392da774f02dff3a97475b75955cc0487f146466 (diff) | |
download | eclipse.platform.swt-978e92a7a86546309cdd42c1561b61a424319609.tar.gz eclipse.platform.swt-978e92a7a86546309cdd42c1561b61a424319609.tar.xz eclipse.platform.swt-978e92a7a86546309cdd42c1561b61a424319609.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java index 0261a2a7d6..7b16cf816e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java @@ -512,8 +512,7 @@ public int getSelectionCount () { public int getSelectionIndex () { checkWidget(); int selection = OS.GTK_CLIST_SELECTION (handle); - if (selection == 0) return 0; - if (OS.g_list_length (selection) == 0) return -1; + if (selection == 0 || OS.g_list_length (selection) == 0) return -1; return OS.g_list_nth_data (selection, 0); } |