diff --git a/Telegram/SourceFiles/sysbuttons.cpp b/Telegram/SourceFiles/sysbuttons.cpp index 8b0de6501d..fb9baf601e 100644 --- a/Telegram/SourceFiles/sysbuttons.cpp +++ b/Telegram/SourceFiles/sysbuttons.cpp @@ -24,7 +24,7 @@ Copyright (c) 2014 John Preston, https://tdesktop.com #include "application.h" SysBtn::SysBtn(QWidget *parent, const style::sysButton &st, const QString &text) : Button(parent), -_st(st), a_color(_st.color->c), _text(text), _overLevel(0) { +_st(st), a_color(_st.color->c), _overLevel(0), _text(text) { int32 w = _st.size.width() + (_text.isEmpty() ? 0 : ((_st.size.width() - _st.img.pxWidth()) / 2 + st::titleTextButton.font->m.width(_text))); resize(w, _st.size.height()); setCursor(style::cur_default);