mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
a299b2ca2f
commit
c99062a27d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user