[U] Updated docs

This commit is contained in:
seleznevae
2020-01-21 19:03:57 +03:00
parent 4871105b0f
commit 8080378736
5 changed files with 11 additions and 4 deletions

View File

@@ -738,6 +738,8 @@ int ft_set_border_style(ft_table_t *table, const struct ft_border_style *style);
#define FT_CUR_ROW (UINT_MAX - 1) /**< Current row */
/** @} */
#define FT_MAX_ROW_INDEX (UINT_MAX - 2)
#define FT_MAX_COL_INDEX (UINT_MAX - 2)
/**

View File

@@ -995,7 +995,7 @@ public:
{
if (FT_IS_ERROR(ft_erase_range(ps_table_->table_,
property_owner_t::ps_row_idx_, 0,
property_owner_t::ps_row_idx_, (UINT_MAX - 2)))) {
property_owner_t::ps_row_idx_, FT_MAX_COL_INDEX))) {
throw std::runtime_error("Failed to erase row");
}
}
@@ -1016,7 +1016,7 @@ public:
{
if (FT_IS_ERROR(ft_erase_range(ps_table_->table_,
0, ps_coll_idx_,
(UINT_MAX - 2), ps_coll_idx_))) {
FT_MAX_ROW_INDEX, ps_coll_idx_))) {
throw std::runtime_error("Failed to erase column");
}
}