]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
HTML for stackrel.
[lyx.git] / src / BufferList.cpp
index 70c15c18abb25176d84846a43af93d3631ebdc0d..f9a059b61caa801b82f935e1ba7daad7eb8d0cbd 100644 (file)
@@ -232,8 +232,10 @@ 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;
        BufferStorage::const_iterator cit =
                find(bstore.begin(), bstore.end(), b);
        return cit != bstore.end();
@@ -336,16 +338,16 @@ bool BufferList::releaseChild(Buffer * parent, Buffer * child)
 }
 
 
-void BufferList::changed() const
+void BufferList::changed(bool update_metrics) const
 {
        BufferStorage::const_iterator it = bstore.begin();
        BufferStorage::const_iterator end = bstore.end();
        for (; it != end; ++it)
-               (*it)->changed();
+               (*it)->changed(update_metrics);
        it = binternal.begin();
        end = binternal.end();
        for (; it != end; ++it)
-               (*it)->changed();
+               (*it)->changed(update_metrics);
 }