X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.cpp;h=aa6d936aec8e6fa00b4c92a4e71c386280e21078;hb=94f0968e9212f24997cfee0d17c6f060210edbc6;hp=504bacdb9a4e1eee96d77f6463baafe2ab0e3578;hpb=5cdcc4f7ef71f01b06666a520e8a2b3deb2c282a;p=lyx.git diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 504bacdb9a..aa6d936aec 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -400,7 +400,7 @@ Buffer::~Buffer() Impl::BufferPositionMap::iterator end = d->children_positions.end(); for (; it != end; ++it) { Buffer * child = const_cast(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 << "" - << (doctitle.empty() ? from_ascii("LyX Document") : doctitle) + << (doctitle.empty() ? + from_ascii("LyX Document") : + html::htmlize(doctitle, XHTMLStream::ESCAPE_ALL)) << "\n"; os << "\n\n"