diff --git a/src/obidms.c b/src/obidms.c index 6994cd8..9b0354a 100755 --- a/src/obidms.c +++ b/src/obidms.c @@ -588,7 +588,7 @@ static int list_dms(OBIDMS_p dms) if (global_opened_dms_list[i] == NULL) { // new dms global_opened_dms_list[i] = dms; - global_opened_dms_counter_list[i] = 0; + global_opened_dms_counter_list[i] = 1; } else { // already opened dms @@ -1543,7 +1543,7 @@ int obi_import_view(const char* dms_path_1, const char* dms_path_2, const char* // Create new view if (strcmp((view_1->infos)->view_type, VIEW_TYPE_NUC_SEQS) == 0) - view_2 = obi_new_view_nuc_seqs(dms_2, view_name_2, NULL, NULL, (view_1->infos)->comments, false); + view_2 = obi_new_view_nuc_seqs(dms_2, view_name_2, NULL, NULL, (view_1->infos)->comments, false, false); else // Non-typed view view_2 = obi_new_view(dms_2, view_name_2, NULL, NULL, (view_1->infos)->comments); @@ -1596,10 +1596,10 @@ int obi_import_view(const char* dms_path_1, const char* dms_path_2, const char* -1, NULL, false) < 0) - { - obidebug(1, "\nError adding a column to a view while importing it"); - return -1; - } + { + obidebug(1, "\nError adding a column to a view while importing it"); + return -1; + } } // Close the views