]> git.lyx.org Git - lyx.git/blobdiff - src/Session.h
fix Row::findElement when there is a Virtual element
[lyx.git] / src / Session.h
index 5af5554d967a99df2cf5a372c7a3d7dbaed413ed..9cbe6d8bf59643ee6114dd0c764852979ab11b98 100644 (file)
@@ -229,9 +229,8 @@ public:
        typedef std::vector<Bookmark> BookmarkList;
 
 public:
-       /// constructor, set max_bookmarks
-       /// allow 9 regular bookmarks, bookmark 0 is temporary
-       BookmarksSection() : bookmarks(10), max_bookmarks(9) {}
+       ///
+       BookmarksSection() : bookmarks(max_bookmarks + 1) {}
 
        /// Save the current position as bookmark
        void save(support::FileName const & fname, pit_type bottom_pit, pos_type bottom_pos,
@@ -265,11 +264,12 @@ public:
 
 private:
 
+       /// allow 9 regular bookmarks, bookmark 0 is temporary
+       unsigned int const max_bookmarks = 9;
+
        /// a list of bookmarks
        BookmarkList bookmarks;
 
-       ///
-       unsigned int const max_bookmarks;
 };