Commit d8a0dcb1 authored by Matthias Clasen's avatar Matthias Clasen

list store: Fix overflow issues

Check for over- and underflow when manipulating positions.

This makes the sequence
  g_list_model_get_item (store, 0);
  g_list_model_get_item (store, -1u);
return NULL for the second call, as it should.

Closes: #1639
parent 471153fb
Pipeline #49620 passed with stages
in 14 minutes and 20 seconds