summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-07-10 01:10:22 +0200
committerAlbert Astals Cid <aacid@kde.org>2019-07-10 01:10:39 +0200
commit2d191b49ea074cc69ba4c68a572f26c8bdb55abd (patch)
tree0dca5b7a280d6c7a2cdd26e127487a884a87895f
parentbf7d1b7daa7c573237884f42f28d38ce335ea49b (diff)
These i should have been j too
-rw-r--r--poppler/TextOutputDev.cc4
1 files 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;