[F] Fix evaluation of max buffer width for column of the table
This commit is contained in:
parent
d87f5c6215
commit
3dff45bd73
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user