[poppler] qt5/src
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jan 28 22:47:48 UTC 2020
qt5/src/poppler-page.cc | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
New commits:
commit 2816a3597f4accadcfe982673b501264e8bdee21
Author: Albert Astals Cid <aacid at 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 <bradh at frogmouth.net>
- * Copyright (C) 2005-2019, Albert Astals Cid <aacid at kde.org>
+ * Copyright (C) 2005-2020, Albert Astals Cid <aacid at kde.org>
* Copyright (C) 2005, Stefan Kebekus <stefan.kebekus at math.uni-koeln.de>
* Copyright (C) 2006-2011, Pino Toscano <pino at kde.org>
* Copyright (C) 2008 Carlos Garcia Campos <carlosgc at 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;
More information about the poppler
mailing list