]> git.lyx.org Git - lyx.git/blobdiff - src/CursorSlice.cpp
Fulfill promise to Andre: TextClass_ptr --> TextClassPtr.
[lyx.git] / src / CursorSlice.cpp
index 42c26145898231c242cb0340551fc0a7dff543ae..3d6e8794b42fbf9b30ca2e571234bd6ead42db1f 100644 (file)
@@ -104,6 +104,19 @@ void CursorSlice::forwardPos()
 
        // 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;