mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
PR: 224193 Submitted by: Henry Hu <henry.hu.sh@gmail.com> Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D13434
17 lines
537 B
C++
17 lines
537 B
C++
--- Telegram/SourceFiles/ui/text/text.cpp.orig 2017-09-05 17:38:38 UTC
|
|
+++ Telegram/SourceFiles/ui/text/text.cpp
|
|
@@ -1689,11 +1689,11 @@ 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();
|