break;
}
- if (token == "\\the_end") {
- lex.printError("\\the_end read in inset! Error in document!");
+ if (token == "\\end_document") {
+ lex.printError("\\end_document read in inset! Error in document!");
return;
}
first = 0;
}
- int yf = y_offset + first;
- y = 0;
+ int yo = y_offset + first;
- while (rit != end && yf < y2) {
- paintRows(*bv, text_, rit,
- y + y_offset + first, x, y + text_.top_y());
- y += rit->height();
- yf += rit->height();
- ++rit;
- }
+ paintRows(*bv, text_, rit, x, 0, yo, y2, yo);
text_.clearPaint();
- if (drawFrame_ == ALWAYS || (drawFrame_ == LOCKED && locked)) {
+ if (drawFrame_ == ALWAYS || (drawFrame_ == LOCKED && locked))
drawFrame(pain, int(start_x));
- }
- if (need_update != INIT) {
+ if (need_update != INIT)
need_update = NONE;
- }
}
}
-void InsetText::lockInset(BufferView * bv, UpdatableInset * inset)
+void InsetText::lockInset(BufferView * /*bv*/, UpdatableInset * inset)
{
the_locking_inset = inset;
inset_x = cix() - top_x + drawTextXOffset;
return false;
found = tl_inset->updateInsetInInset(bv, inset);
ustat = FULL;
- } else {
+ } else {
text_.updateInset(tl_inset);
setUpdateStatus(ustat);
}
if (cur == text_.cursor)
return;
text_.setSelection();
- bool flag = (text_.toggle_cursor.par() != text_.toggle_end_cursor.par() ||
- text_.toggle_cursor.pos() != text_.toggle_end_cursor.pos());
- if (flag) {
- updateLocal(bv, SELECTION, false);
- }
+ updateLocal(bv, SELECTION, false);
}