]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Fix loop when opening TOC widget in an empty document, basically by Richard Heck.
[lyx.git] / src / BufferView.h
index 181b71c14c0d03782d43b5270fb64473a5d81527..a4726346c6934d81054e9bf27ab3d7897a585e3b 100644 (file)
@@ -115,12 +115,13 @@ public:
        /// Save the current position as bookmark.
        /// if idx == 0, save to temp_bookmark
        void saveBookmark(unsigned int idx);
-       /// goto a specified position, try par_id first, and then par_pit
-       /// return the par_pit and par_id of the new paragraph
-       boost::tuple<pit_type, int> moveToPosition(
-               pit_type par_pit, ///< Paragraph pit, used when par_id is zero or invalid.
-               int par_id, ///< Paragraph ID, \sa Paragraph
-               pos_type par_pos ///< Position in the \c Paragraph
+       /// goto a specified position, try top_id first, and then bottom_pit
+       /// return the bottom_pit and top_id of the new paragraph
+       boost::tuple<pit_type, pos_type, int> moveToPosition(
+               pit_type bottom_pit, ///< Paragraph pit, used when par_id is zero or invalid.
+               pos_type bottom_pos, ///< Paragraph pit, used when par_id is zero or invalid.
+               int top_id, ///< Paragraph ID, \sa Paragraph
+               pos_type top_pos ///< Position in the \c Paragraph
                );
        /// return the current change at the cursor.
        Change const getCurrentChange() const;