void Text::setLayout(pit_type start, pit_type end,
docstring const & layout)
{
+ // FIXME: make this work in multicell selection case
LASSERT(start != end, return);
Buffer const & buffer = owner_->buffer();
cur.top() = resetCursor;
cur.resetAnchor();
}
+
+ // if there was no selection at all, the point was to change cursor font.
+ // Otherwise, we want to reset it to local text font.
+ if (cur.selection() || implicitSelection)
+ cur.setCurrentFont();
}
void Text::deleteEmptyParagraphMechanism(pit_type first, pit_type last, bool trackChanges)
{
- pos_type last_pos = static_cast<pos_type>(pars_[last].size() - 1);
+ pos_type last_pos = pars_[last].size() - 1;
deleteEmptyParagraphMechanism(first, last, 0, last_pos, trackChanges);
}