]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibtex.cpp
Remove TextClassPtr without losing the type safety it provided.
[lyx.git] / src / insets / InsetBibtex.cpp
index 4d79ffa7fa5bea7176c8d30ebec99bd5013198e5..a54b0b4a3a033155d0c5099b4fdf046c1595b9f1 100644 (file)
@@ -293,7 +293,7 @@ int InsetBibtex::latex(odocstream & os, OutputParams const & runparams) const
                                              "BibTeX will be unable to find it."));
        }
 
-       if (!db_out.empty() && buffer().params().use_bibtopic){
+       if (!db_out.empty() && buffer().params().use_bibtopic) {
                os << "\\begin{btSect}{" << db_out << "}\n";
                docstring btprint = getParam("btprint");
                if (btprint.empty())
@@ -310,8 +310,7 @@ int InsetBibtex::latex(odocstream & os, OutputParams const & runparams) const
                // part of its name, because it's than book.
                // For the "official" lyx-layouts it's no problem to support
                // all well
-               if (!contains(buffer().params().textClass().name(),
-                             "art")) {
+               if (!contains(buffer().params().documentClass().name(), "art")) {
                        if (buffer().params().sides == OneSide) {
                                // oneside
                                os << "\\clearpage";