[gitg/gnome-3-30] Collapse only existing lanes



commit aca07a0ad700857e7c88019b074b139167039556
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Wed Jan 2 22:45:46 2019 +0100

    Collapse only existing lanes

 libgitg/gitg-lanes.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgitg/gitg-lanes.vala b/libgitg/gitg-lanes.vala
index 1af72e05..d782bba9 100644
--- a/libgitg/gitg-lanes.vala
+++ b/libgitg/gitg-lanes.vala
@@ -334,7 +334,7 @@ public class Lanes : Object
                        var commit = item.data;
                        unowned SList<Lane> lns = commit.get_lanes();
 
-                       if (lns != null)
+                       if (lns != null && index <= lns.length())
                        {
                                unowned Lane lane = lns.nth_data(index);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]