ports/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_ui_text_text.cpp
Yuri Victorovich 857f98b9e4 New port: net-im/telegram-desktop: Telegram Desktop messaging app
PR:		224193
Submitted by:	Henry Hu <henry.hu.sh@gmail.com>
Approved by:	adamw (mentor)
Differential Revision:	https://reviews.freebsd.org/D13434
2017-12-18 23:35:45 +00:00

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();