X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FDocIterator.cpp;h=0555a9f75f1db9dc2b467c22ee80f54415e4becf;hb=13739f37d5208e87e97c44ef2eeba35807ddb9c5;hp=3af7dcba93b96762e5055b8a8c6479ae89cdb38b;hpb=49beed74374324834745198cf90dba949070d603;p=lyx.git diff --git a/src/DocIterator.cpp b/src/DocIterator.cpp index 3af7dcba93..0555a9f75f 100644 --- a/src/DocIterator.cpp +++ b/src/DocIterator.cpp @@ -192,6 +192,16 @@ Paragraph & DocIterator::innerParagraph() const } +FontSpan DocIterator::locateWord(word_location const loc) const +{ + FontSpan f = FontSpan(); + + f.first = pos(); + top().paragraph().locateWord(f.first, f.last, loc); + return f; +} + + CursorSlice const & DocIterator::innerTextSlice() const { LASSERT(!empty(), /**/);