summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-07-15 20:16:14 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-07-15 20:17:48 +0200
commit40d84fce43cf0279ccfbd7aba08d43f6cd9be79f (patch)
treeeadf49a62564803a7185b97e2ffc44b5cffa5f75 /app-text/poppler/files
parentsys-kernel/genkernel: Fix dosshd check (diff)
downloadgentoo-40d84fce43cf0279ccfbd7aba08d43f6cd9be79f.tar.gz
gentoo-40d84fce43cf0279ccfbd7aba08d43f6cd9be79f.tar.bz2
gentoo-40d84fce43cf0279ccfbd7aba08d43f6cd9be79f.zip
app-text/poppler: Fix text selection on some revdeps
Closes: https://bugs.gentoo.org/689660 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-text/poppler/files')
-rw-r--r--app-text/poppler/files/poppler-0.78.0-fix-text-selection.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/app-text/poppler/files/poppler-0.78.0-fix-text-selection.patch b/app-text/poppler/files/poppler-0.78.0-fix-text-selection.patch
new file mode 100644
index 000000000000..8a9c3a760f3b
--- /dev/null
+++ b/app-text/poppler/files/poppler-0.78.0-fix-text-selection.patch
@@ -0,0 +1,28 @@
+From 2d191b49ea074cc69ba4c68a572f26c8bdb55abd Mon Sep 17 00:00:00 2001
+From: Albert Astals Cid <aacid@kde.org>
+Date: Wed, 10 Jul 2019 01:10:22 +0200
+Subject: [PATCH] Fix mistake on 093531cd0d0878b892d92ebc56c26936e5de3712
+
+These i should have been j too
+---
+ poppler/TextOutputDev.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
+index e62e088c..645e38fd 100644
+--- a/poppler/TextOutputDev.cc
++++ b/poppler/TextOutputDev.cc
+@@ -4791,8 +4791,8 @@ void TextSelectionPainter::endPage()
+ if (j != begin && sel->word->charPos[j] == sel->word->charPos[j - 1])
+ continue;
+
+- out->drawChar(state, sel->word->textMat[i].m[4], sel->word->textMat[i].m[5], 0, 0, 0, 0,
+- sel->word->charcode[i], 1, nullptr, 0);
++ out->drawChar(state, sel->word->textMat[j].m[4], sel->word->textMat[j].m[5], 0, 0, 0, 0,
++ sel->word->charcode[j], 1, nullptr, 0);
+ }
+ out->endString(state);
+ delete string;
+--
+2.21.0
+