[poppler] Branch 'poppler-0.10' - poppler/TextOutputDev.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Thu Nov 20 00:33:40 PST 2008
poppler/TextOutputDev.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 90a04be5b86f88f67cff52cf087275f417f8abc0
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Tue Nov 18 20:11:07 2008 +0100
Fix a crash when selecting text in word mode
diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index 85a9dbf..881a707 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -3812,7 +3812,7 @@ void TextLine::visitSelection(TextSelectionVisitor *visitor,
child_selection = *selection;
if (style == selectionStyleWord) {
- child_selection.x1 = begin->xMin;
+ child_selection.x1 = begin ? begin->xMin : xMin;
if (end && end->xMax != -1) {
child_selection.x2 = current->xMax;
} else {
More information about the poppler
mailing list