]> git.lyx.org Git - lyx.git/blobdiff - src/Author.cpp
Improve how add_to_preamble and insert_to_preamble work, and audit the
[lyx.git] / src / Author.cpp
index 0ad9b898ead7c64fe6112bebd2048a0612bf37f5..90c319e8a6e6340cd4a1c4807d00f7830dca1f12 100644 (file)
@@ -90,6 +90,13 @@ void AuthorList::record(int id, Author const & a)
 }
 
 
+void AuthorList::recordCurrentAuthor(Author const & a)
+{
+       // current author has id 0
+       record(0, a);
+}
+
+
 Author const & AuthorList::get(int id) const
 {
        LASSERT(id < (int)authors_.size() , /**/);