]> git.lyx.org Git - features.git/commitdiff
Fix use of default biblio_style
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 26 Mar 2018 13:50:35 +0000 (15:50 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 26 Mar 2018 15:59:27 +0000 (17:59 +0200)
Fixes: #11088
src/BufferParams.cpp
status.23x

index b709b16a54ec2da433c391654abf0bce82d59250..827823d8ba5beb7f5daa11487028354c3597cc39 100644 (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())
index d86dbd5bffd419f95d637352dab6fd20b82b5e43..7f78e1dce339bad44107ba5f131b33ac6a083f6c 100644 (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