particle/progress-bar: fix regression in width calculation: = -> +=

This commit is contained in:
Daniel Eklöf 2021-08-30 18:00:41 +02:00
parent e9d762fa03
commit e4e9587322
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -74,7 +74,7 @@ begin_expose(struct exposable *exposable)
/* Margins */
if (have_at_least_one) {
exposable->width = exposable->particle->left_margin +
exposable->width += exposable->particle->left_margin +
exposable->particle->right_margin;
} else
assert(exposable->width == 0);