From d4cdd67128fb420d224f017f93d587f8dadf3cb8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 7 Oct 2022 13:09:33 +0400 Subject: [PATCH] Fix RTL text in bot attach webview main button. --- Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index 40cf7d84b..0818aa15c 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -303,7 +303,7 @@ void Panel::Button::paintEvent(QPaintEvent *e) { const auto textTop = _st.padding.top() + _st.textTop; const auto textLeft = padding + (space - textWidth) / 2; p.setPen(_fg); - _text.drawLeftElided(p, textLeft, textTop, space, width()); + _text.drawLeftElided(p, textLeft, textTop, textWidth, width()); } QImage Panel::Button::prepareRippleMask() const {