Made the truncating of columns automatic when closing them (note:

already the case for AVLs)
This commit is contained in:
Celine Mercier
2016-04-14 15:13:30 +02:00
parent 9d042f7bd0
commit 4cb52e1632
11 changed files with 17 additions and 45 deletions

View File

@ -843,18 +843,18 @@ OBIDMS_column_p obi_view_clone_column(Obiview_p view, const char* column_name)
if (!(strcmp((((view->columns)[i])->header)->name, column_name)))
column = (view->columns)[i];
else
obi_truncate_and_close_column(column_buffer); // TODO weird closing after cloning but can't think of cleaner yet
obi_close_column(column_buffer); // TODO weird closing after cloning but can't think of cleaner yet
}
}
if (view->line_selection != NULL)
{
obi_truncate_and_close_column(view->line_selection);
obi_close_column(view->line_selection);
view->line_selection = NULL;
}
if (view->new_line_selection != NULL)
{
obi_truncate_and_close_column(view->new_line_selection);
obi_close_column(view->new_line_selection);
view->new_line_selection = NULL;
}
@ -883,7 +883,7 @@ int obi_view_delete_column(Obiview_p view, const char* column_name)
{
if (!strcmp((((view->columns)[i])->header)->name, column_name))
{
obi_truncate_and_close_column((view->columns)[i]);
obi_close_column((view->columns)[i]);
found = 1;
}
if (found)