]> git.lyx.org Git - lyx.git/blobdiff - src/Session.cpp
We only support gcc >= 4.9.
[lyx.git] / src / Session.cpp
index 16b6df7c61b2a3bca93cce9fb73dc85a256f3eba..a814991e59dcbdfdb709931f881c313f1dad3672 100644 (file)
@@ -353,6 +353,15 @@ BookmarksSection::bookmarksInPar(FileName const & fn, int const par_id) const
 }
 
 
+void BookmarksSection::adjustPosAfterPos(FileName const & fn,
+       int const par_id, pos_type pos, int offset)
+{
+       for (Bookmark & bkm : bookmarks)
+               if (bkm.filename == fn && bkm.top_id == par_id && bkm.top_pos > pos)
+                       bkm.top_pos += offset;
+}
+
+
 LastCommandsSection::LastCommandsSection(unsigned int num) :
        default_num_last_commands(30),
        absolute_max_last_commands(100)