From ba8673af5eade03b234aa52763622abe7aad0ec2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 16 Aug 2022 09:47:17 +0300 Subject: [PATCH] Fix build with Xcode. --- Telegram/SourceFiles/info/profile/info_profile_cover.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp index d99705f21..9e0700e07 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp @@ -245,7 +245,7 @@ void EmojiStatusPanel::show( }, _panel->lifetime()); } const auto parent = _panel->parentWidget(); - const auto global = button->mapToGlobal({ 0, 0 }); + const auto global = button->mapToGlobal(QPoint()); const auto local = parent->mapFromGlobal(global); _panel->moveTopRight( local.y() + button->height(),