qt5/src/poppler-page.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
New commits: commit 2816a3597f4accadcfe982673b501264e8bdee21 Author: Albert Astals Cid <aa...@kde.org> Date: Tue Jan 28 23:42:31 2020 +0100 qt5: fix search for "complex" characters poppler internals want ucs4 not unicode based on a patch by Alex Henrie diff --git a/qt5/src/poppler-page.cc b/qt5/src/poppler-page.cc index f40b00e6..9e08134a 100644 --- a/qt5/src/poppler-page.cc +++ b/qt5/src/poppler-page.cc @@ -1,7 +1,7 @@ /* poppler-page.cc: qt interface to poppler * Copyright (C) 2005, Net Integration Technologies, Inc. * Copyright (C) 2005, Brad Hards <br...@frogmouth.net> - * Copyright (C) 2005-2019, Albert Astals Cid <aa...@kde.org> + * Copyright (C) 2005-2020, Albert Astals Cid <aa...@kde.org> * Copyright (C) 2005, Stefan Kebekus <stefan.kebe...@math.uni-koeln.de> * Copyright (C) 2006-2011, Pino Toscano <p...@kde.org> * Copyright (C) 2008 Carlos Garcia Campos <carlo...@gnome.org> @@ -373,10 +373,7 @@ Link* PageData::convertLinkActionToLink(::LinkAction * a, DocumentData *parentDo inline TextPage *PageData::prepareTextSearch(const QString &text, Page::Rotation rotate, QVector<Unicode> *u) { - const QChar * str = text.unicode(); - const int len = text.length(); - u->resize(len); - for (int i = 0; i < len; ++i) (*u)[i] = str[i].unicode(); + *u = text.toUcs4(); const int rotation = (int)rotate * 90; _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler