diff --git a/Telegram/SourceFiles/history/view/history_view_view_button.cpp b/Telegram/SourceFiles/history/view/history_view_view_button.cpp index 3fecbac6b..7bfed5f54 100644 --- a/Telegram/SourceFiles/history/view/history_view_view_button.cpp +++ b/Telegram/SourceFiles/history/view/history_view_view_button.cpp @@ -208,7 +208,9 @@ void ViewButton::draw( pen.setWidth(st::lineWidth); p.setPen(pen); p.setBrush(Qt::NoBrush); - p.drawRoundedRect(r, st::roundRadiusLarge, st::roundRadiusLarge); + const auto half = st::lineWidth / 2.; + const auto rf = QRectF(r).marginsRemoved({ half, half, half, half }); + p.drawRoundedRect(rf, st::roundRadiusLarge, st::roundRadiusLarge); _inner->text.drawElided( p,