diff options
-rw-r--r-- | poppler/TextOutputDev.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc index 85a9dbf7..881a707a 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 { |