From df0229cffdddb49474222cfe544154f5b528d5f0 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 24 Aug 2021 20:01:34 +0300 Subject: [PATCH] Fixed render of text selection in sections. Regression was introduced in f4fdadd3b0. --- Telegram/SourceFiles/history/view/history_view_list_widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp index dc7a8f1b7..4582d0412 100644 --- a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp @@ -1623,6 +1623,7 @@ void ListWidget::paintEvent(QPaintEvent *e) { p.translate(0, top); for (auto i = from; i != to; ++i) { const auto view = *i; + context.selection = itemRenderSelection(view); view->draw(p, context); const auto height = view->height(); top += height;