From 3ac540c21116cb9cc91cfd1d7b0dd6f6ded31123 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 29 Mar 2021 00:20:40 +0200 Subject: Fix crash when editing text --- src/Body.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index 36c5b1b..7133fbe 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -77,7 +77,7 @@ namespace QuickMedia { last_drawn_time = other.last_drawn_time; embedded_item_status = other.embedded_item_status; if(other.embedded_item) { - embedded_item = std::make_shared(""); + embedded_item.reset(new BodyItem("")); *embedded_item = *other.embedded_item; } else { embedded_item = nullptr; -- cgit v1.2.3