Commit e27e05da authored by Wolfram Sang's avatar Wolfram Sang Committed by Bruno Coudoin

When shuffling the items for the left bar, the last item was skipped. As the

 upper limit for random-functions is exclusive, we have to pass the whole
 list_size, not list_size - 1. Also, simplify the code.
parent d75b609a
......@@ -1683,7 +1683,7 @@ parse_doc(xmlDocPtr doc)
Shape *shape;
i = list_length == 1 ? 0 : g_random_int_range(0, g_list_length(shape_list_init)-1);
i = g_random_int_range(0, list_length);
shape = g_list_nth_data(shape_list_init, i);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment