From e4269ae7fb2c84bcd7ba277e6c70d3b3e0c42155 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 6 Sep 2024 23:28:43 +0400 Subject: [PATCH] Fix crash in PeerShortInfoBox. --- Telegram/SourceFiles/boxes/peers/peer_short_info_box.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peers/peer_short_info_box.cpp b/Telegram/SourceFiles/boxes/peers/peer_short_info_box.cpp index 959d36e51..830dc13bd 100644 --- a/Telegram/SourceFiles/boxes/peers/peer_short_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/peer_short_info_box.cpp @@ -671,8 +671,6 @@ PeerShortInfoBox::PeerShortInfoBox( ) | rpl::start_with_next([=] { _cover.setScrollTop(_scroll->scrollTop()); }, _cover.lifetime()); - - setCustomCornersFilling(RectPart::FullTop); } PeerShortInfoBox::~PeerShortInfoBox() = default; @@ -723,6 +721,7 @@ void PeerShortInfoBox::prepare() { _roundedTop.setDevicePixelRatio(style::DevicePixelRatio()); refreshRoundedTopImage(getDelegate()->style().bg->c); + setCustomCornersFilling(RectPart::FullTop); setDimensionsToContent(st::shortInfoWidth, _rows); }