From 73cade9fd9b8e6a05f5155c7458d08d1d4462468 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 13 Sep 2015 14:11:05 +0300 Subject: [PATCH] fixed bad media fwd/reply layout --- Telegram/SourceFiles/history.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history.cpp b/Telegram/SourceFiles/history.cpp index 8bd82a7132..8801f94dc5 100644 --- a/Telegram/SourceFiles/history.cpp +++ b/Telegram/SourceFiles/history.cpp @@ -5877,7 +5877,7 @@ void HistoryForwarded::drawMessageText(QPainter &p, const QRect &trect, uint32 s int32 HistoryForwarded::resize(int32 width) { HistoryMessage::resize(width); - _height += st::msgServiceNameFont->height; + if (!justMedia()) _height += st::msgServiceNameFont->height; return _height; } @@ -6179,7 +6179,7 @@ void HistoryReply::drawMessageText(QPainter &p, const QRect &trect, uint32 selec int32 HistoryReply::resize(int32 width) { HistoryMessage::resize(width); - _height += st::msgReplyPadding.top() + st::msgReplyBarSize.height() + st::msgReplyPadding.bottom(); + if (!justMedia()) _height += st::msgReplyPadding.top() + st::msgReplyBarSize.height() + st::msgReplyPadding.bottom(); return _height; }