Fix use of default biblio_style

Fixes: #11088
This commit is contained in:
Juergen Spitzmueller 2018-03-26 15:50:35 +02:00
parent 022bc036ca
commit 346d31d38d

View File

@ -394,7 +394,7 @@ BufferParams::BufferParams()
papersize = PAPER_DEFAULT;
orientation = ORIENTATION_PORTRAIT;
use_geometry = false;
biblio_style = "plain";
biblio_style = string();
use_bibtopic = false;
multibib = string();
use_indices = false;
@ -3425,6 +3425,9 @@ bool BufferParams::addCiteEngine(vector<string> const & engine)
string const & BufferParams::defaultBiblioStyle() const
{
if (!biblio_style.empty())
return biblio_style;
map<string, string> const & bs = documentClass().defaultBiblioStyle();
auto cit = bs.find(theCiteEnginesList.getTypeAsString(citeEngineType()));
if (cit != bs.end())