mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix default biblio style detection
This commit is contained in:
parent
298730215c
commit
78eb821038
@ -3241,7 +3241,7 @@ bool BufferParams::addCiteEngine(vector<string> const & engine)
|
||||
string const & BufferParams::defaultBiblioStyle() const
|
||||
{
|
||||
map<string, string> bs = documentClass().defaultBiblioStyle();
|
||||
return bs[documentClass().opt_enginetype()];
|
||||
return bs[theCiteEnginesList.getTypeAsString(citeEngineType())];
|
||||
}
|
||||
|
||||
|
||||
|
@ -772,9 +772,12 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
|
||||
vector<string>::const_iterator it = dbs.begin();
|
||||
vector<string>::const_iterator end = dbs.end();
|
||||
for (; it != end; ++it) {
|
||||
if (!contains(*it, ':'))
|
||||
cite_default_biblio_style_[opt_enginetype_] = *it;
|
||||
else {
|
||||
if (!contains(*it, ':')) {
|
||||
vector<string> const enginetypes =
|
||||
getVectorFromString(opt_enginetype_, "|");
|
||||
for (string const &s: enginetypes)
|
||||
cite_default_biblio_style_[s] = *it;
|
||||
} else {
|
||||
string eng;
|
||||
string const db = split(*it, eng, ':');
|
||||
cite_default_biblio_style_[eng] = db;
|
||||
|
Loading…
Reference in New Issue
Block a user