From 3b22bc0a42469c20fd86ceae68b812f2e55ab841 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 12 Jun 2021 23:34:32 +0200 Subject: [PATCH] Fixed the fix: considering the case of non-layout hosted Shapes container too --- src/db/db/dbShapes.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/db/db/dbShapes.cc b/src/db/db/dbShapes.cc index 0c3ce4438..7b4ddf96c 100644 --- a/src/db/db/dbShapes.cc +++ b/src/db/db/dbShapes.cc @@ -381,7 +381,15 @@ Shapes::do_insert (const Shapes::shape_type &shape, const Shapes::unit_trans_typ } case shape_type::TextRef: { - if (shape.text_ref ().obj ().string_ref () != 0) { + if (! layout ()) { + shape_type::text_type t; + shape.text (t); + if (! shape.has_prop_id ()) { + return insert (t); + } else { + return insert (db::object_with_properties (t, pm (shape.prop_id ()))); + } + } else if (shape.text_ref ().obj ().string_ref () != 0) { return safe_insert_text (*this, shape, pm); } else { return (insert_by_tag (shape_type::text_ref_type::tag (), shape, shape_repository (), pm));