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;
- }
}
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);
}