Added a check on the element when setting a value in a column

This commit is contained in:
Celine Mercier
2017-07-05 14:49:20 +02:00
parent 1d2996c6c0
commit f5e992abbf
10 changed files with 22 additions and 14 deletions

View File

@ -26,7 +26,7 @@
int obi_column_set_obichar_with_elt_idx(OBIDMS_column_p column, index_t line_nb, index_t element_idx, obichar_t value)
{
if (obi_column_prepare_to_set_value(column, line_nb) < 0)
if (obi_column_prepare_to_set_value(column, line_nb, element_idx) < 0)
return -1;
// Set the value