commit 953df3089463f3c240ba89adcf966064ebbc642a
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Mon Mar 26 15:50:35 2018 +0200

    Fix use of default biblio_style
    
    Fixes: #11088
---
 src/BufferParams.cpp |    5 ++++-
 status.23x           |    3 +++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index b709b16..827823d 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -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())
diff --git a/status.23x b/status.23x
index d86dbd5..7f78e1d 100644
--- a/status.23x
+++ b/status.23x
@@ -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
 

Reply via email to