Made the truncating of columns automatic when closing them (note:
already the case for AVLs)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user