Fix bug #7194 (Crash closing master while child documents are opened)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37021 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-12-28 15:47:05 +00:00
parent 29d849f251
commit c203112890

View File

@ -2687,7 +2687,8 @@ MacroData const * Buffer::Impl::getBufferMacro(docstring const & name,
break;
// scope ends behind pos?
if (pos < it->second.first) {
if (pos < it->second.first
&& theBufferList().isLoaded(it->second.second)) {
// look for macro in external file
macro_lock = true;
MacroData const * data