void Cursor::setSelection()
{
setSelection(true);
- // A selection with no contents is not a selection
- // FIXME: doesnt look ok
if (idx() == normalAnchor().idx() &&
pit() == normalAnchor().pit() &&
pos() == normalAnchor().pos())
Row const & real_next_row = tm.parMetrics(pit()).rows()[next_row];
bool bound = false;
- pos_type const col = tm.getColumnNearX(pit(), real_next_row,
- xo, bound);
- top().pos() = real_next_row.pos() + col;
+ top().pos() = tm.getPosNearX(real_next_row, xo, bound);
boundary(bound);
updateNeeded |= bv().checkDepm(*this, old);