diff options
author | Nathan Scott <nathans@redhat.com> | 2020-08-20 14:19:53 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-08-20 14:19:53 +1000 |
commit | a82fd262d75f8494c34416e49c6241c29692676e (patch) | |
tree | 5c4ff9b8a872ca06e8e200a034099c736da1e160 /Header.c | |
parent | cdff8aea2ab10870af1aad5bdb6949ea0fd407b0 (diff) | |
parent | 63fbc3b51704b4b122d2cab57de7e7f9dfcc03b1 (diff) |
Merge branch 'hishamhm-pull-960'
Diffstat (limited to 'Header.c')
-rw-r--r-- | Header.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -76,17 +76,17 @@ void Header_populateFromSettings(Header* this) { void Header_writeBackToSettings(const Header* this) { Header_forEachColumn(this, col) { MeterColumnSettings* colSettings = &this->settings->columns[col]; - + String_freeArray(colSettings->names); free(colSettings->modes); - + Vector* vec = this->columns[col]; int len = Vector_size(vec); - + colSettings->names = xCalloc(len+1, sizeof(char*)); colSettings->modes = xCalloc(len, sizeof(int)); colSettings->len = len; - + for (int i = 0; i < len; i++) { Meter* meter = (Meter*) Vector_get(vec, i); char* name = xCalloc(64, sizeof(char)); @@ -188,7 +188,7 @@ void Header_draw(const Header* this) { } int width = COLS / this->nrColumns - (pad * this->nrColumns - 1) - 1; int x = pad; - + Header_forEachColumn(this, col) { Vector* meters = this->columns[col]; for (int y = (pad / 2), i = 0; i < Vector_size(meters); i++) { |