From c3bc61051d7f12b4c682efa7a5460bbc8815649e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 7 Jan 2022 22:48:01 +0000 Subject: gentoo resync : 07.01.2022 --- .../files/tdesktop-3.3.0-fix-enchant.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 net-im/telegram-desktop/files/tdesktop-3.3.0-fix-enchant.patch (limited to 'net-im/telegram-desktop/files') diff --git a/net-im/telegram-desktop/files/tdesktop-3.3.0-fix-enchant.patch b/net-im/telegram-desktop/files/tdesktop-3.3.0-fix-enchant.patch new file mode 100644 index 000000000000..35781fda0ced --- /dev/null +++ b/net-im/telegram-desktop/files/tdesktop-3.3.0-fix-enchant.patch @@ -0,0 +1,20 @@ +--- tdesktop-3.3.0-full.orig/Telegram/lib_spellcheck/spellcheck/platform/linux/spellcheck_linux.cpp ++++ tdesktop-3.3.0-full/Telegram/lib_spellcheck/spellcheck/platform/linux/spellcheck_linux.cpp +@@ -34,7 +34,7 @@ + auto IsHebrew(const QString &word) { + // Words with mixed scripts will be automatically ignored, + // so this check should be fine. +- return ::Spellchecker::WordScript(&word) == QChar::Script_Hebrew; ++ return ::Spellchecker::WordScript(word) == QChar::Script_Hebrew; + } + + class EnchantSpellChecker { +@@ -154,7 +154,7 @@ + } + + auto EnchantSpellChecker::findSuggestions(const QString &word) { +- const auto wordScript = ::Spellchecker::WordScript(&word); ++ const auto wordScript = ::Spellchecker::WordScript(word); + auto w = word.toStdString(); + std::vector result; + if (!_validators.size()) { -- cgit v1.2.3