When doing some other things, I ran across this code:
   // bibtotoc-Option
   if (!bibtotoc.empty() && !buffer().params().use_bibtopic) {
       // maybe a problem when a textclass has no "art" as
       // 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().documentClass().name(), "art")) {
           if (buffer().params().sides == OneSide) {
               // oneside
               os << "\\clearpage";
           } else {
               // twoside
               os << "\\cleardoublepage";
           }

           // bookclass
           os << "\\addcontentsline{toc}{chapter}{\\bibname}";

       } else {
           // article class
           os << "\\addcontentsline{toc}{section}{\\refname}";
       }
   }
Surely the test on the line I've marked cannot be right. Right? Isn't what we want to know here whether the class contains chapters? If so, couldn't we just find that out? I'm happy to fix this, if it seems worth fixing.

rh

Reply via email to