diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-04-11 18:05:23 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-04-11 18:05:23 +0200 |
commit | 6933a73727c5d88a02fb5c9416a4ccaafc4d7b64 (patch) | |
tree | 7074edef2e15eed7fb1cee6b065ef8fdaeb566c8 /src | |
parent | ad4265cd01b4cda3823d05d66daaf997fdef4559 (diff) |
Matrix: fix crash when copying body item with reactions and the other items reaction has not been loaded
Diffstat (limited to 'src')
-rw-r--r-- | src/BodyItem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BodyItem.cpp b/src/BodyItem.cpp index 431616d..192a7bf 100644 --- a/src/BodyItem.cpp +++ b/src/BodyItem.cpp @@ -60,8 +60,8 @@ namespace QuickMedia { reactions.clear(); for(auto &reaction : other.reactions) { Reaction reaction_copy; - reaction_copy.text = std::make_unique<Text>(*reaction.text); reaction_copy.userdata = reaction.userdata; + reaction_copy.text_color = reaction.text_color; reactions.push_back(std::move(reaction_copy)); } title = other.title; |