]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Minor cleanup.
[lyx.git] / src / Buffer.cpp
index 504bacdb9a4e1eee96d77f6463baafe2ab0e3578..aa6d936aec8e6fa00b4c92a4e71c386280e21078 100644 (file)
@@ -400,7 +400,7 @@ Buffer::~Buffer()
        Impl::BufferPositionMap::iterator end = d->children_positions.end();
        for (; it != end; ++it) {
                Buffer * child = const_cast<Buffer *>(it->first);
-               if (d->cloned_buffer_)
+               if (isClone())
                        delete child;
                // The child buffer might have been closed already.
                else if (theBufferList().isLoaded(child))
@@ -1714,7 +1714,9 @@ void Buffer::writeLyXHTMLSource(odocstream & os,
 
                docstring const & doctitle = features.htmlTitle();
                os << "<title>"
-                  << (doctitle.empty() ? from_ascii("LyX Document") : doctitle)
+                  << (doctitle.empty() ? 
+                        from_ascii("LyX Document") : 
+                        html::htmlize(doctitle, XHTMLStream::ESCAPE_ALL))
                   << "</title>\n";
 
                os << "\n<!-- Text Class Preamble -->\n"