Added OBIView_line_selection class to make new line selections

associated with the view to clone, and improved and renamed method
closing a view
This commit is contained in:
Celine Mercier
2016-09-30 17:48:53 +02:00
parent d88811ed7d
commit 9cd57deca9
10 changed files with 90 additions and 33 deletions

View File

@ -1132,6 +1132,22 @@ Obiview_p obi_new_view(OBIDMS_p dms, const char* view_name, Obiview_p view_to_cl
int i;
index_t line_nb;
// Check that the DMS is a valid pointer
if (dms == NULL)
{
obi_set_errno(OBIVIEW_ERROR);
obidebug(1, "\nError creating a view: DMS pointer is NULL");
return NULL;
}
// Check that the view name pointer is valid
if (view_name == NULL)
{
obi_set_errno(OBIVIEW_ERROR);
obidebug(1, "\nError creating a view: view name is NULL");
return NULL;
}
// Check uniqueness of name
if (view_exists(dms, view_name))
{