]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbib.C
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetbib.C
index 933b3ddf916d78592b8efc67f2bc7d38f09c4d9f..d314ad7013c235f5c9cf0a11f710e4496a4bbb11 100644 (file)
@@ -210,15 +210,10 @@ int InsetBibtex::latex(Buffer const * buffer, ostream & os,
 }
 
 
-vector<string> const InsetBibtex::getFiles(Buffer const &) const
+vector<string> const InsetBibtex::getFiles(Buffer const & buffer) const
 {
        // Doesn't appear to be used (Angus, 31 July 2001)
-       // Path p(buffer->filePath());
-#ifdef WITH_WARNINGS
-#warning Angus, do you now that this is not supposed to be used but to change path?
-// I would say this is needed to find bib files which are in the
-// document directory (JMarc 14/01/2002)
-#endif
+       Path p(buffer.filePath());
 
        vector<string> vec;
 
@@ -257,7 +252,7 @@ vector<pair<string, string> > const InsetBibtex::getKeys(Buffer const * buffer)
                string linebuf0;
                while (getline(ifs, linebuf0)) {
                        string linebuf = frontStrip(strip(linebuf0));
-                       if (linebuf.empty() ) continue;
+                       if (linebuf.empty()) continue;
                        if (prefixIs(linebuf, "@")) {
                                linebuf = subst(linebuf, '{', '(');
                                string tmp;