aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-29 00:20:40 +0200
committerdec05eba <dec05eba@protonmail.com>2021-03-29 00:20:40 +0200
commit3ac540c21116cb9cc91cfd1d7b0dd6f6ded31123 (patch)
treefdcd44bbfd3591279658f2f0ff5628033e0458d6 /src/Body.cpp
parent016f115baf7fe8c080202e7969e5740a98cdc76e (diff)
Fix crash when editing text
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp2
1 files changed, 1 insertions, 1 deletions
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<BodyItem>("");
+ embedded_item.reset(new BodyItem(""));
*embedded_item = *other.embedded_item;
} else {
embedded_item = nullptr;