mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-04 23:34:39 +00:00
control available lanes to paint
This commit is contained in:
parent
e4366f8cdf
commit
313e6ce90c
1 changed files with 3 additions and 3 deletions
|
@ -342,12 +342,12 @@ public class Lanes : Object
|
|||
var commit = item.data;
|
||||
unowned SList<Lane> lns = commit.get_lanes();
|
||||
|
||||
if (lns != null && index <= lns.length())
|
||||
if (lns != null && index < lns.length())
|
||||
{
|
||||
unowned Lane lane = lns.nth_data(index);
|
||||
|
||||
if (item.next != null)
|
||||
{
|
||||
if (item.next != null && lane.from != null)
|
||||
{
|
||||
var newindex = lane.from.data;
|
||||
|
||||
lns = commit.remove_lane(lane);
|
||||
|
|
Loading…
Reference in a new issue