X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FBufferList.cpp;h=5e83c7b63ebe967dcad3d87f933a005ab07f9313;hb=c16440ac9bdb7505aafff0dc9d94c5e63403948c;hp=a61b0bfd80fdd8d80229601eb96537b7b8557fa7;hpb=c2d182f59ae7a25214889fb160ae545849a01468;p=lyx.git diff --git a/src/BufferList.cpp b/src/BufferList.cpp index a61b0bfd80..5e83c7b63e 100644 --- a/src/BufferList.cpp +++ b/src/BufferList.cpp @@ -269,7 +269,7 @@ bool BufferList::exists(FileName const & fname) const } - bool BufferList::isLoaded(Buffer const * b) const +bool BufferList::isLoaded(Buffer const * b) const { if (!b) return false; @@ -279,6 +279,16 @@ bool BufferList::exists(FileName const & fname) const } +bool BufferList::isInternal(Buffer const * b) const +{ + if (!b) + return false; + BufferStorage::const_iterator cit = + find(binternal.begin(), binternal.end(), b); + return cit != binternal.end(); +} + + bool BufferList::isOthersChild(Buffer * parent, Buffer * child) { LASSERT(parent, return false);