[poppler] poppler/TextOutputDev.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sat Dec 29 01:16:34 PST 2012
poppler/TextOutputDev.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 80c7f6aa3fa83175fafc71fa8c834350d513a48f
Author: Jason Crain <jason at aquaticape.us>
Date: Fri Nov 23 23:31:01 2012 -0600
TextOutputDev: Use page size for max value in TextPage::visitSelection
https://bugs.freedesktop.org/show_bug.cgi?id=50138
diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index 64a0848..a2198df 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -4615,7 +4615,8 @@ void TextPage::visitSelection(TextSelectionVisitor *visitor,
if (!best_block[i] ||
d < best_d[i] ||
(!blk->next && !flow->next &&
- x[i] > xMax && y[i] > yMax)) {
+ x[i] >= fmin(xMax, pageWidth) &&
+ y[i] >= fmin(yMax, pageHeight))) {
best_block[i] = blk;
best_flow[i] = flow;
best_count[i] = count;
More information about the poppler
mailing list