]> git.lyx.org Git - lyx.git/blobdiff - src/bufferlist.C
Fix natbib bug spotted by JMarc.
[lyx.git] / src / bufferlist.C
index 10564433367c7c8424de8ab0143dc61ffca6240d..caba200f85ed7b21aae441818d0fb35b9ed3d4b9 100644 (file)
@@ -569,3 +569,13 @@ Buffer * BufferList::loadLyXFile(string const & filename, bool tolastfiles)
 
        return b;
 }
+
+
+void BufferList::setCurrentAuthor(string const & name, string const & email)
+{
+       BufferStorage::iterator it = bstore.begin();
+       BufferStorage::iterator end = bstore.end();
+       for (; it != end; ++it) {
+               (*it)->authors().record(0, Author(name, email));
+       }
+}