]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
Squeeze warning.
[lyx.git] / src / DocIterator.cpp
index 3af7dcba93b96762e5055b8a8c6479ae89cdb38b..310b85131ba8e1e3fe16eeaf69e58713d62cfc47 100644 (file)
@@ -192,6 +192,18 @@ Paragraph & DocIterator::innerParagraph() const
 }
 
 
+FontSpan DocIterator::locateWord(word_location const loc) const
+{
+       FontSpan f = FontSpan();
+
+       if (!top().text()->empty()) {
+               f.first = pos();
+               top().paragraph().locateWord(f.first, f.last, loc);
+       }
+       return f;
+}
+
+       
 CursorSlice const & DocIterator::innerTextSlice() const
 {
        LASSERT(!empty(), /**/);