mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +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
|
string const & BufferParams::defaultBiblioStyle() const
|
||||||
{
|
{
|
||||||
map<string, string> bs = documentClass().defaultBiblioStyle();
|
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 it = dbs.begin();
|
||||||
vector<string>::const_iterator end = dbs.end();
|
vector<string>::const_iterator end = dbs.end();
|
||||||
for (; it != end; ++it) {
|
for (; it != end; ++it) {
|
||||||
if (!contains(*it, ':'))
|
if (!contains(*it, ':')) {
|
||||||
cite_default_biblio_style_[opt_enginetype_] = *it;
|
vector<string> const enginetypes =
|
||||||
else {
|
getVectorFromString(opt_enginetype_, "|");
|
||||||
|
for (string const &s: enginetypes)
|
||||||
|
cite_default_biblio_style_[s] = *it;
|
||||||
|
} else {
|
||||||
string eng;
|
string eng;
|
||||||
string const db = split(*it, eng, ':');
|
string const db = split(*it, eng, ':');
|
||||||
cite_default_biblio_style_[eng] = db;
|
cite_default_biblio_style_[eng] = db;
|
||||||
|
Loading…
Reference in New Issue
Block a user