- int yo = y + xcell(1).descent() + xcell(0).ascent() + 1;
- xcell(0).draw(pain, m - xcell(0).width() / 2, yo);
- xcell(1).draw(pain, m - xcell(1).width() / 2, y);
+ int yo = y + cell(1).descent() + cell(0).ascent() + 1;
+ cell(1).draw(pi, m - cell(1).width() / 2, y);
+ FracChanger dummy(pi.base);
+ cell(0).draw(pi, m - cell(0).width() / 2, yo);
+ drawMarkers(pi, x, y);
+}
+
+
+bool MathUndersetInset::idxFirst(LCursor & cur) const
+{
+ cur.idx() = 1;
+ cur.pos() = 0;
+ return true;
+}
+
+
+bool MathUndersetInset::idxLast(LCursor & cur) const
+{
+ cur.idx() = 1;
+ cur.pos() = cur.lastpos();
+ return true;
+}
+
+
+bool MathUndersetInset::idxUpDown(LCursor & 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.x_target());
+ return true;