From 92c0fbc9bf7d2ffa34cd4f5b836ec114ac29022d Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Mon, 29 Oct 2018 17:39:30 +0100 Subject: [PATCH] Fixed a bug where an imported column was not flagged as finished, resulting in its deletion when reopening the DMS. --- src/obidms.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/obidms.c b/src/obidms.c index 9b0354a..ffaf542 100755 --- a/src/obidms.c +++ b/src/obidms.c @@ -1420,6 +1420,8 @@ obiversion_t obi_import_column(const char* dms_path_1, const char* dms_path_2, c obidebug(1, "\nError closing an imported column"); return -1; } + + (column_2->header)->finished = true; // note: this is normally handled by the view that created the column if (obi_close_column(column_2) < 0) { obidebug(1, "\nError closing an imported column"); @@ -1494,6 +1496,8 @@ obiversion_t obi_import_column(const char* dms_path_1, const char* dms_path_2, c obidebug(1, "\nError closing an imported column"); return -1; } + + (column_2->header)->finished = true; // note: this is normally handled by the view that created the column if (obi_close_column(column_2) < 0) { obidebug(1, "\nError closing an imported column");