mirror of https://github.com/procxx/kepka.git
Fix tilde formatting in InputField.
Regression was introduced somewhen while uniting input field classes. Fixes #4829.
This commit is contained in:
parent
831f1b6aee
commit
165d1aacae
|
@ -1844,8 +1844,8 @@ bool InputField::isRedoAvailable() const {
|
||||||
void InputField::processFormatting(int insertPosition, int insertEnd) {
|
void InputField::processFormatting(int insertPosition, int insertEnd) {
|
||||||
// Tilde formatting.
|
// Tilde formatting.
|
||||||
const auto tildeFormatting = !cRetina()
|
const auto tildeFormatting = !cRetina()
|
||||||
&& (font().pixelSize() == 13)
|
&& (_st.font->f.pixelSize() == 13)
|
||||||
&& (font().family() == qstr("Open Sans"));
|
&& (_st.font->f.family() == qstr("Open Sans"));
|
||||||
auto isTildeFragment = false;
|
auto isTildeFragment = false;
|
||||||
const auto tildeFixedFont = AdjustFont(st::semiboldFont, _st.font);
|
const auto tildeFixedFont = AdjustFont(st::semiboldFont, _st.font);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue