diff options
Diffstat (limited to 'src/Body.cpp')
-rw-r--r-- | src/Body.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Body.cpp b/src/Body.cpp index 5c2a66c..430c28f 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -67,7 +67,12 @@ namespace QuickMedia { userdata = other.userdata; last_drawn_time = other.last_drawn_time; embedded_item_status = other.embedded_item_status; - embedded_item = other.embedded_item; + if(other.embedded_item) { + embedded_item = std::make_shared<BodyItem>(""); + *embedded_item = *other.embedded_item; + } else { + embedded_item = nullptr; + } thumbnail_mask_type = other.thumbnail_mask_type; thumbnail_size = other.thumbnail_size; title = other.title; |