From 4ddc6897dd53274bb68eb6401715c718a212d9ab Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 22 Nov 2020 07:47:04 +0100 Subject: Matrix: fix embedded text (replies) making body stutter if word wrapping but original item does not --- include/Body.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/Body.hpp b/include/Body.hpp index 43e2946..45121f8 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -118,6 +118,9 @@ namespace QuickMedia { void *userdata; // Not managed, should be deallocated by whoever sets this double last_drawn_time; FetchStatus embedded_item_status = FetchStatus::NONE; + // Important! Should refer to a new BodyItem, not one that already exists in the body. + // TODO: Allow referring to an existing body item. This doesn't work properly at the moment because max width of text and line count calculation getting messed up + // if an embedded item wraps but not the original body item. std::shared_ptr embedded_item; // Used by matrix for example to display reply message body. Note: only the first level of embedded items is rendered (not recursive, this is done on purpose) ThumbnailMaskType thumbnail_mask_type = ThumbnailMaskType::NONE; sf::Vector2i thumbnail_size; -- cgit v1.2.3