From df1101169790121c61ed87ed1e72c81c4ce5856f Mon Sep 17 00:00:00 2001 From: jacky2050 <251274554@qq.com> Date: Sat, 16 Dec 2023 22:13:25 +0800 Subject: [PATCH] Fix Error when Setting Group Chat Background without Choosing Emoji. Fixes #27205. --- .../info/userpic/info_userpic_emoji_builder_preview.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/info/userpic/info_userpic_emoji_builder_preview.cpp b/Telegram/SourceFiles/info/userpic/info_userpic_emoji_builder_preview.cpp index 59e78131c5098..8d163ee70d712 100644 --- a/Telegram/SourceFiles/info/userpic/info_userpic_emoji_builder_preview.cpp +++ b/Telegram/SourceFiles/info/userpic/info_userpic_emoji_builder_preview.cpp @@ -187,11 +187,7 @@ void EmojiUserpic::result(int size, Fn done) { { auto p = QPainter(&background); - while (true) { - if (painter->paintForeground(p)) { - break; - } - } + painter->paintForeground(p); } if (*_playOnce && document) { done({ std::move(background), document->id, _colors });