+ Pimpl::FontList::const_iterator cit = pimpl_->fontlist.begin();
+ Pimpl::FontList::const_iterator end = pimpl_->fontlist.end();
+ for (; cit != end; ++cit)
+ if (cit->pos() >= pos)
+ return cit->pos();
+
+ // This should not happen, but if so, we take no chances.
+ lyxerr << "Pararaph::getEndPosOfFontSpan: This should not happen!\n";
+ return pos;