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

New commits:
commit 90a04be5b86f88f67cff52cf087275f417f8abc0
Author: Carlos Garcia Campos <[EMAIL PROTECTED]>
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 {
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to