[F] Fix evaluation of max buffer width for column of the table

This commit is contained in:
seleznevae 2020-02-05 23:04:21 +03:00
parent d87f5c6215
commit 3dff45bd73
2 changed files with 12 additions and 4 deletions

View File

@ -7062,8 +7062,12 @@ f_status table_rows_and_cols_geometry(const ft_table_t *table,
} }
} }
if (geom == INTERN_REPR_GEOMETRY && // In theory it is possible that cell with max intern. representation
col_width_arr[col] > column_visible_width) { // just consists of invisible symobls and therefore in future a lot of
// paddings will be added to it during conversion to string. So to be
// sure we add max visible width in the column.
// TODO: Try to reduce this addition.
if (geom == INTERN_REPR_GEOMETRY) {
col_width_arr[col] += column_visible_width; col_width_arr[col] += column_visible_width;
} }
} }

View File

@ -204,8 +204,12 @@ f_status table_rows_and_cols_geometry(const ft_table_t *table,
} }
} }
if (geom == INTERN_REPR_GEOMETRY && // In theory it is possible that cell with max intern. representation
col_width_arr[col] > column_visible_width) { // just consists of invisible symobls and therefore in future a lot of
// paddings will be added to it during conversion to string. So to be
// sure we add max visible width in the column.
// TODO: Try to reduce this addition.
if (geom == INTERN_REPR_GEOMETRY) {
col_width_arr[col] += column_visible_width; col_width_arr[col] += column_visible_width;
} }
} }