TextMetrics const & tm = bv.textMetrics(this);
int const xo = bv.coordCache().get(this, pit).x_;
x -= xo;
- int max_witdh = tm.maxWidth();
RowMetrics const r = tm.computeRowMetrics(pit, row);
Paragraph const & par = pars_[pit];
TextMetrics & tm = bv.textMetrics(this);
ParagraphMetrics const & pm = tm.parMetrics(it->first);
- int max_width = tm.maxWidth();
// If we are off-screen (before the visible part)
if (y < 0
Row const & LyXText::getRowNearY(BufferView const & bv, int y, pit_type pit) const
{
- Paragraph const & par = pars_[pit];
ParagraphMetrics const & pm = bv.parMetrics(this, pit);
int yy = bv.coordCache().get(this, pit).y_ - pm.ascent();
TextMetrics const & tm = cur.bv().textMetrics(this);
ParagraphMetrics const & pm = tm.parMetrics(pit);
- Buffer const & buffer = cur.buffer();
int right_margin = tm.rightMargin(pm);
int xx = x; // is modified by getColumnNearX
pos_type const pos = row.pos()
return setCursor(cur, cur.pit(), cur.pos(), true, true);
}
if (cur.pos() != 0) {
- bool boundary = cur.boundary();
bool updateNeeded = setCursor(cur, cur.pit(), cur.pos() - 1, true, false);
if (!checkAndActivateInset(cur, false)) {
+ /** FIXME: What's this cause purpose???
+ bool boundary = cur.boundary();
if (false && !boundary &&
bidi.isBoundary(cur.buffer(), cur.paragraph(), cur.pos() + 1))
updateNeeded |=
setCursor(cur, cur.pit(), cur.pos() + 1, true, true);
+ */
}
return updateNeeded;
}
// Tell BufferView to test for FitCursor in any case!
cur.updateFlags(Update::FitCursor);
- Paragraph const & par = cur.paragraph();
ParagraphMetrics const & pm = cur.bv().parMetrics(this, cur.pit());
int row;
// Tell BufferView to test for FitCursor in any case!
cur.updateFlags(Update::FitCursor);
- Paragraph const & par = cur.paragraph();
ParagraphMetrics const & pm = cur.bv().parMetrics(this, cur.pit());
int row;