X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetbib.C;h=d314ad7013c235f5c9cf0a11f710e4496a4bbb11;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=c82d4048003d80695880dd8305088183d07d79ef;hpb=b922cdd796f9e4b9a46a79808cdee596e04903eb;p=lyx.git diff --git a/src/insets/insetbib.C b/src/insets/insetbib.C index c82d404800..d314ad7013 100644 --- a/src/insets/insetbib.C +++ b/src/insets/insetbib.C @@ -160,8 +160,8 @@ int InsetBibtex::latex(Buffer const * buffer, ostream & os, } if (!buffer->niceFile - && IsFileReadable(MakeAbsPath(style, buffer->filepath) + ".bst")) { - style = MakeAbsPath(style, buffer->filepath); + && IsFileReadable(MakeAbsPath(style, buffer->filePath()) + ".bst")) { + style = MakeAbsPath(style, buffer->filePath()); } if (!style.empty()) { // we want no \biblio...{} @@ -198,8 +198,8 @@ int InsetBibtex::latex(Buffer const * buffer, ostream & os, // have a comma-separated list of bibliographies while (!adb.empty()) { if (!buffer->niceFile && - IsFileReadable(MakeAbsPath(adb, buffer->filepath)+".bib")) - adb = os::external_path(MakeAbsPath(adb, buffer->filepath)); + IsFileReadable(MakeAbsPath(adb, buffer->filePath())+".bib")) + adb = os::external_path(MakeAbsPath(adb, buffer->filePath())); db_out += adb; db_out += ','; db_in= split(db_in, adb,','); @@ -210,10 +210,10 @@ int InsetBibtex::latex(Buffer const * buffer, ostream & os, } -vector const InsetBibtex::getFiles(Buffer const &) const +vector const InsetBibtex::getFiles(Buffer const & buffer) const { // Doesn't appear to be used (Angus, 31 July 2001) - // Path p(buffer->filepath); + Path p(buffer.filePath()); vector vec; @@ -252,7 +252,7 @@ vector > 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;