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.clearSelection();
cur.top() = resetCursor;
cur.resetAnchor();
- cur.setCurrentFont();
}
+
+ // 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();
}