From 462f6012367c1f74829bc3c24eb73187972c661e Mon Sep 17 00:00:00 2001 From: John Esmet Date: Thu, 22 May 2014 18:57:56 -0400 Subject: [PATCH] fixes #248 Convert to a tree on omt clone if it must support marks --- util/omt.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/omt.cc b/util/omt.cc index 92cda38aefe..709c7eab4c3 100644 --- a/util/omt.cc +++ b/util/omt.cc @@ -207,6 +207,9 @@ void omt::clone(const omt &src) { src.fill_array_with_subtree_values(&this->d.a.values[0], src.d.t.root); } this->d.a.num_values = src.size(); + if (supports_marks) { + this->convert_to_tree(); + } } template