diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-06 05:30:30 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-06 05:30:30 +0000 |
commit | a0c489048a412d8611b481c127374188899f7fe8 (patch) | |
tree | f0cbd27b144ee31553d49f0af75fd5439518b436 /gtk/gtkmultiselection.c | |
parent | 0f9def660d22f4f68b8b6cd271cf2eea4f098bc4 (diff) | |
parent | 9fa65eadae5a2b8555e8cfdf214e0c11038625af (diff) | |
download | gtk+-a0c489048a412d8611b481c127374188899f7fe8.tar.gz |
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2052
Diffstat (limited to 'gtk/gtkmultiselection.c')
-rw-r--r-- | gtk/gtkmultiselection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkmultiselection.c b/gtk/gtkmultiselection.c index 26b4b1d65f..73bcee6daa 100644 --- a/gtk/gtkmultiselection.c +++ b/gtk/gtkmultiselection.c @@ -202,7 +202,8 @@ gtk_multi_selection_add_or_remove (GtkSelectionModel *model, } while (n > 0); - gtk_selection_model_selection_changed (model, min, max - min + 1); + if (min <= max) + gtk_selection_model_selection_changed (model, min, max - min + 1); return TRUE; } |