Bookmarks: change from LIFO to FIFO

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16630 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-01-09 18:13:29 +00:00
parent 2e7b4eafd1
commit 4751f7004c

View File

@ -285,7 +285,7 @@ void BookmarksSection::write(ostream & os) const
void BookmarksSection::save(FileName const & fname, int par_id, pos_type par_pos, bool persistent)
{
if (persistent) {
bookmarks.push_front(Bookmark(fname, par_id, par_pos));
bookmarks.push_back(Bookmark(fname, par_id, par_pos));
if (bookmarks.size() > max_bookmarks)
bookmarks.pop_back();
}