mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
sysprof/normalized-series: fix bitset miss-use
This commit is contained in:
@ -173,8 +173,8 @@ sysprof_normalized_series_items_changed (SysprofSeries *series,
|
|||||||
g_assert (SYSPROF_IS_NORMALIZED_SERIES (self));
|
g_assert (SYSPROF_IS_NORMALIZED_SERIES (self));
|
||||||
g_assert (G_IS_LIST_MODEL (model));
|
g_assert (G_IS_LIST_MODEL (model));
|
||||||
|
|
||||||
egg_bitset_splice (self->missing, position, removed, added);
|
if (removed > 0 || added > 0)
|
||||||
egg_bitset_add_range (self->missing, position, added);
|
egg_bitset_splice (self->missing, position, removed, added);
|
||||||
|
|
||||||
if (removed > 0)
|
if (removed > 0)
|
||||||
g_array_remove_range (self->values, position, removed);
|
g_array_remove_range (self->values, position, removed);
|
||||||
|
|||||||
Reference in New Issue
Block a user