}
-Paragraph & CursorSlice::paragraph()
-{
- return text()->getPar(pit_);
-}
-
-
-Paragraph const & CursorSlice::paragraph() const
+Paragraph & CursorSlice::paragraph() const
{
return text()->getPar(pit_);
}
return;
}
- // otherwise try to move on one cell if possible
- if (idx() < lastidx()) {
- //lyxerr << "... next idx" << endl;
- ++idx();
- pit() = 0;
- pos() = 0;
- return;
- }
- BOOST_ASSERT(false);
+ // otherwise move on one cell
+ //lyxerr << "... next idx" << endl;
+
+ BOOST_ASSERT(idx() < nargs());
+
+ ++idx();
+ pit() = 0;
+ pos() = 0;
+}
+
+
+void CursorSlice::forwardIdx()
+{
+ BOOST_ASSERT(idx() < nargs());
+
+ ++idx();
+ pit() = 0;
+ pos() = 0;
}