break;
}
// put cursor in front of inset.
- if (!setCursorFromInset(inset))
+ if (!setCursorFromInset(inset)) {
LASSERT(false, break);
+ }
// useful if we are called from a dialog.
cur.beginUndoGroup();
cur.recordUndo();
vector<docstring> retval;
while (s.size() > width) {
// find the last space within the first 'width' chars
- int i = s.find_last_of(' ', width - 1);
- if (i == docstring::npos || i <= ind) {
+ size_t i = s.find_last_of(' ', width - 1);
+ if (i == docstring::npos || i <= size_t(ind)) {
// no space found
s = s.substr(0, width - 3) + "...";
break;