maplistmodel: Fix an oversight
authorMatthias Clasen <mclasen@redhat.com>
Thu, 14 Jul 2022 23:51:26 +0000 (19:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 14 Jul 2022 23:52:54 +0000 (19:52 -0400)
This was meant to go into 678eb8ab76bd.

gtk/gtkmaplistmodel.c

index e1cb0b1553903b6cc68410eee61a953369e6ff40..de4cd27dbed32f2dcd568f0e67cec57ee79eef22 100644 (file)
@@ -249,7 +249,7 @@ gtk_map_list_model_items_changed_cb (GListModel      *model,
           if (end >= position + count)
             {
               node->n_items -= count;
-              removed = 0;
+              count = 0;
               gtk_rb_tree_node_mark_dirty (node);
             }
           else if (start < position)