- int yo = y - dim1.asc - dim0.des - 1;
- cell(1).draw(pi, m - dim1.wid / 2, y);
- FracChanger dummy(pi.base);
- cell(0).draw(pi, m - dim0.width() / 2, yo);
- drawMarkers(pi, x, y);
+ int yo = y - dim0.asc - dim1.des - 1;
+ cell(0).draw(pi, m - dim0.wid / 2, y);
+ Changer dummy = pi.base.changeScript();
+ cell(1).draw(pi, m - dim1.width() / 2, yo);
+}
+
+
+bool InsetMathOverset::idxUpDown(Cursor & cur, bool up) const
+{
+ idx_type target = up; // up ? 1 : 0, since upper cell has idx 1
+ if (cur.idx() == target)
+ return false;
+ cur.idx() = target;
+ cur.pos() = cur.cell().x2pos(&cur.bv(), cur.x_target());
+ return true;