[F] Fix incorrect behaviour when using FT_CUR_...
macroses
When macroses FT_CUR_ROW, FT_CUR_CELL were used behaviour was unexpected - properties were not applied. Cause of bug - simple typo. Also we didn't have tests for usage of these macroses. So I added them also.
This commit is contained in:
@@ -46,8 +46,8 @@ SOFTWARE.
|
||||
|
||||
#define LIBFORT_MAJOR_VERSION 0
|
||||
#define LIBFORT_MINOR_VERSION 3
|
||||
#define LIBFORT_REVISION 0
|
||||
#define LIBFORT_VERSION_STR "0.3.0"
|
||||
#define LIBFORT_REVISION 1
|
||||
#define LIBFORT_VERSION_STR "0.3.1"
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
|
@@ -843,7 +843,7 @@ int ft_set_cell_prop(ft_table_t *table, size_t row, size_t col, uint32_t propert
|
||||
|
||||
if (row == FT_CUR_ROW)
|
||||
row = table->cur_row;
|
||||
if (row == FT_CUR_COLUMN)
|
||||
if (col == FT_CUR_COLUMN)
|
||||
col = table->cur_col;
|
||||
|
||||
return set_cell_property(table->properties->cell_properties, row, col, property, value);
|
||||
|
Reference in New Issue
Block a user