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 59e78131c50989..8d163ee70d7127 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 });