From f234e5787c07c3963f661024a8480f5d6d93a78f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 28 May 2021 18:53:27 +0200 Subject: Sigh more shitr --- include/Body.hpp | 2 +- src/Body.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Body.hpp b/include/Body.hpp index a74c320..36282f3 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -209,7 +209,7 @@ namespace QuickMedia { void append_items(BodyItems new_items); // Returns the inserted position size_t insert_item_by_timestamp(std::shared_ptr body_item); - // Note: also moves the selected item forward the number of items inserted before/after it (depending on attach_side) + // Note: keeps the selected item (moving the selected_item index if necessary) void insert_items_by_timestamps(BodyItems new_items); void clear_cache(); void clear_text_cache(); diff --git a/src/Body.cpp b/src/Body.cpp index 3acaf3b..a1eb592 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -1058,8 +1058,8 @@ namespace QuickMedia { } } else if(item->thumbnail_size.x > 0) { text_offset_x += image_padding_x + content_size.x; - if(!merge_with_previous) - image_height = content_size.y; + //if(!merge_with_previous) + // image_height = content_size.y; } if(load_texture) -- cgit v1.2.3