summaryrefslogtreecommitdiff
path: root/gtk/gtkmultiselection.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-06 05:30:30 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-06-06 05:30:30 +0000
commita0c489048a412d8611b481c127374188899f7fe8 (patch)
treef0cbd27b144ee31553d49f0af75fd5439518b436 /gtk/gtkmultiselection.c
parent0f9def660d22f4f68b8b6cd271cf2eea4f098bc4 (diff)
parent9fa65eadae5a2b8555e8cfdf214e0c11038625af (diff)
downloadgtk+-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.c3
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;
}