]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
lyx-build: check sig in case one really uses download instead of local tarball.
[lyx.git] / src / BufferList.cpp
index 2bbb8b93a4add7692aa10ef2ca3bd560bddf1f79..538df77a1de2005553f3df4dda4ddbdaae8130ed 100644 (file)
@@ -268,7 +268,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;
@@ -278,6 +278,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);