From 5d58bfadbc2a210e10f3620a6519466319069d54 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 1 Jan 2017 08:37:56 +0100 Subject: [PATCH] Make biblio_style private This should never ever be accessed directly --- src/BufferParams.h | 8 +++++--- src/frontends/qt4/GuiDocument.cpp | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/BufferParams.h b/src/BufferParams.h index 13870f1d8c..29897fd975 100644 --- a/src/BufferParams.h +++ b/src/BufferParams.h @@ -462,9 +462,9 @@ public: /// the available citation styles std::vector citeStyles() const; - /// the default BibTeX style file for the document - std::string biblio_style; - /// the default BibTeX style file from the TextClass + /// Set the default BibTeX style file for the document + void setDefaultBiblioStyle(std::string const & s){ biblio_style = s; } + /// Get the default BibTeX style file from the TextClass std::string const & defaultBiblioStyle() const; /// whether the BibTeX style supports full author lists bool const & fullAuthorList() const; @@ -535,6 +535,8 @@ private: LayoutModuleList cite_engine_; /// the type of cite engine (authoryear or numerical) CiteEngineType cite_engine_type_; + /// the default BibTeX style file for the document + std::string biblio_style; /// DocumentClassPtr doc_class_; /// diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 34b2fc0b91..077bc55fec 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -2642,7 +2642,7 @@ void GuiDocument::applyView() bp_.use_bibtopic = biblioModule->bibtopicCB->isChecked(); - bp_.biblio_style = fromqstr(biblioModule->defaultBiblioCO->currentText()); + bp_.setDefaultBiblioStyle(fromqstr(biblioModule->defaultBiblioCO->currentText())); string const bibtex_command = fromqstr(biblioModule->bibtexCO->itemData( -- 2.39.2