mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-13 05:02:17 +00:00
Set correct length after resize
This commit is contained in:
parent
03f8446283
commit
431ea91e9d
|
@ -253,9 +253,12 @@ public class CommitModel : Object
|
|||
{
|
||||
lock(d_ids)
|
||||
{
|
||||
var oldlen = d_ids.length;
|
||||
|
||||
size *= 2;
|
||||
|
||||
d_ids.resize((int)size);
|
||||
d_ids.length = oldlen;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue