Pimpl::FontList::const_iterator cit = pimpl_->fontlist.begin();
Pimpl::FontList::const_iterator end = pimpl_->fontlist.end();
for (; cit != end; ++cit) {
- if (cit->pos() > pos)
+ if (cit->pos() >= pos)
break;
}
Pimpl::FontList::const_iterator end_it = pimpl_->fontlist.begin();
Pimpl::FontList::const_iterator end = pimpl_->fontlist.end();
for (; end_it != end; ++end_it) {
- if (end_it->pos() > endpos)
+ if (end_it->pos() >= endpos)
break;
}
Pimpl::FontList::const_iterator cit = pimpl_->fontlist.begin();
for (; cit != end; ++cit) {
- if (cit->pos() > startpos)
+ if (cit->pos() >= startpos)
break;
}
Pimpl::FontList::iterator it = beg;
Pimpl::FontList::iterator endit = pimpl_->fontlist.end();
for (; it != endit; ++it) {
- if (it->pos() > pos)
+ if (it->pos() >= pos)
break;
}
unsigned int i = std::distance(beg, it);
{
value_type const c = getChar(pos);
return IsLineSeparatorChar(c)
- || (IsInsetChar(c) && getInset(pos)->isLineSeparator());
+ || (IsInsetChar(c) && getInset(pos) &&
+ getInset(pos)->isLineSeparator());
}