mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-01 05:33:49 +00:00
control available lanes to paint
This commit is contained in:
parent
e4366f8cdf
commit
313e6ce90c
|
@ -342,12 +342,12 @@ public class Lanes : Object
|
||||||
var commit = item.data;
|
var commit = item.data;
|
||||||
unowned SList<Lane> lns = commit.get_lanes();
|
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);
|
unowned Lane lane = lns.nth_data(index);
|
||||||
|
|
||||||
if (item.next != null)
|
if (item.next != null && lane.from != null)
|
||||||
{
|
{
|
||||||
var newindex = lane.from.data;
|
var newindex = lane.from.data;
|
||||||
|
|
||||||
lns = commit.remove_lane(lane);
|
lns = commit.remove_lane(lane);
|
||||||
|
|
Loading…
Reference in a new issue