Buffer::resetChildDocuments() Check for Buffer emptiness before proceeding.

Abdel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23063 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-19 07:31:02 +00:00
parent a299b2ca2f
commit c99062a27d

View File

@ -2312,6 +2312,9 @@ void Buffer::autoSave() const
void Buffer::resetChildDocuments(bool close_them) const
{
if (text().empty())
return;
for (InsetIterator it = inset_iterator_begin(inset()); it; ++it) {
if (it->lyxCode() != INCLUDE_CODE)
continue;