diff options
Diffstat (limited to 'src/glibext')
-rw-r--r-- | src/glibext/gwidthtracker.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glibext/gwidthtracker.c b/src/glibext/gwidthtracker.c index 10d01ab..94e7f36 100644 --- a/src/glibext/gwidthtracker.c +++ b/src/glibext/gwidthtracker.c @@ -518,6 +518,8 @@ void g_width_tracker_update_added(GWidthTracker *tracker, size_t index, size_t c tracker->portions = (common_metrics *)realloc(tracker->portions, tracker->count * sizeof(common_metrics)); + portion = &tracker->portions[current]; + dest = current + 2; src = current + 1; @@ -535,6 +537,8 @@ void g_width_tracker_update_added(GWidthTracker *tracker, size_t index, size_t c tracker->portions[current + 1].first = portion->first + 1; tracker->portions[current + 1].last = portion->last; + tracker->portions[current + 1].cached = false; + portion->first = i; portion->last = i; @@ -546,6 +550,8 @@ void g_width_tracker_update_added(GWidthTracker *tracker, size_t index, size_t c tracker->portions[current + 1].first = i; tracker->portions[current + 1].last = portion->last; + tracker->portions[current + 1].cached = false; + portion->last = i - 1; } |