[poppler] poppler/TextOutputDev.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Tue Nov 18 11:11:58 PST 2008


 poppler/TextOutputDev.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4a4fa7ed44a87e47a6078a1f7bb6f41071672ea7
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