From 5c6515febbb7d87cad1d4c344c9b5ec344d3160c Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 4 Jul 2019 17:27:18 +0200 Subject: [PATCH] Fix strike-through text font selection. --- Telegram/SourceFiles/ui/style/style_core_font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/style/style_core_font.cpp b/Telegram/SourceFiles/ui/style/style_core_font.cpp index 060b0abda0..11655abc6c 100644 --- a/Telegram/SourceFiles/ui/style/style_core_font.cpp +++ b/Telegram/SourceFiles/ui/style/style_core_font.cpp @@ -21,7 +21,7 @@ typedef QMap FontDatas; FontDatas fontsMap; uint32 fontKey(int size, uint32 flags, int family) { - return (((uint32(family) << 10) | uint32(size)) << 3) | flags; + return (((uint32(family) << 10) | uint32(size)) << 4) | flags; } } // namespace