bool rtl0 = false;
pos_type const main_body = beginningOfMainBody(buf, row->par());
- for (pos_type lpos = bidi_start;
- lpos <= bidi_end; ++lpos) {
+ for (pos_type lpos = bidi_start; lpos <= bidi_end; ++lpos) {
bool is_space = row->par()->isLineSeparator(lpos);
pos_type const pos =
(is_space && lpos + 1 <= bidi_end &&
return rtl != rtl2;
}
+
void LyXText::drawNewline(DrawRowParams & p, pos_type const pos)
{
// Draw end-of-line marker
}
-// Returns the left beginning of the text.
-// This information cannot be taken from the layouts-objekt, because in
-// LaTeX the beginning of the text fits in some cases (for example sections)
-// exactly the label-width.
int LyXText::leftMargin(BufferView * bview, Row const * row) const
{
Inset * ins;
}
} else {
// Last position is an invariant
- pos_type const last =
- par->size();
+ pos_type const last = par->size();
// this is the usual handling
int x = leftMargin(bview, row);
bool doitonetime = true;
pos_type const last = rowLastPrintable(p.row);
- if (!p.bv->screen()->forceClear() && last == p.row->pos()
+ if (!p.bv->screen().forceClear() && last == p.row->pos()
&& p.row->par()->isInset(p.row->pos())) {
inset = p.row->par()->getInset(p.row->pos());
if (inset) {