mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
2e7b4eafd1
commit
4751f7004c
@ -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)
|
void BookmarksSection::save(FileName const & fname, int par_id, pos_type par_pos, bool persistent)
|
||||||
{
|
{
|
||||||
if (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)
|
if (bookmarks.size() > max_bookmarks)
|
||||||
bookmarks.pop_back();
|
bookmarks.pop_back();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user