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:
@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user