summaryrefslogtreecommitdiff
path: root/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_ui_text_text.cpp
blob: e9f9741f3568d0725ffa590ffd385e37f1b43e39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- Telegram/SourceFiles/ui/text/text.cpp.orig	2019-10-07 15:58:21 UTC
+++ Telegram/SourceFiles/ui/text/text.cpp
@@ -1972,11 +1972,11 @@ class Renderer { (private)
 		if (item == -1)
 			return;
 
-#ifdef OS_MAC_OLD
+#if defined(OS_MAC_OLD) || QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
 		auto end = _e->findItem(line.from + line.length - 1);
-#else // OS_MAC_OLD
+#else
 		auto end = _e->findItem(line.from + line.length - 1, item);
-#endif // OS_MAC_OLD
+#endif
 
 		auto blockIndex = _lineStartBlock;
 		auto currentBlock = _t->_blocks[blockIndex].get();