Fix use of default biblio_style

Fixes: #11088
This commit is contained in:
Juergen Spitzmueller 2018-03-26 15:50:35 +02:00
parent 977a0c4037
commit 953df30894
2 changed files with 7 additions and 1 deletions

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;
@ -3426,6 +3426,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())

View File

@ -122,6 +122,9 @@ What's new
- Take actual font height into account when drawing placeholder box
for graphics (bug 11048).
- Correctly set degault bibliography style in the Document Settings
dialog (bug 11088).
* INTERNALS