2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix tilde formatting in InputField.

Regression was introduced somewhen while uniting input field classes.

Fixes #4829.
This commit is contained in:
John Preston
2018-06-28 16:07:53 +01:00
parent 831f1b6aee
commit 165d1aacae

View File

@@ -1844,8 +1844,8 @@ bool InputField::isRedoAvailable() const {
void InputField::processFormatting(int insertPosition, int insertEnd) {
// Tilde formatting.
const auto tildeFormatting = !cRetina()
&& (font().pixelSize() == 13)
&& (font().family() == qstr("Open Sans"));
&& (_st.font->f.pixelSize() == 13)
&& (_st.font->f.family() == qstr("Open Sans"));
auto isTildeFragment = false;
const auto tildeFixedFont = AdjustFont(st::semiboldFont, _st.font);