X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferList.cpp;h=61d62206a3f3e35e740c74f2cf25022e331d2370;hb=2098f1d8c20d51e63e670bcdc9da8996068975bf;hp=b47057a5ec4b0ead88db31887570da0b098e82d9;hpb=c0dac43600ec03fe1babb80a871f78f6c991bc8b;p=lyx.git diff --git a/src/BufferList.cpp b/src/BufferList.cpp index b47057a5ec..61d62206a3 100644 --- a/src/BufferList.cpp +++ b/src/BufferList.cpp @@ -119,7 +119,7 @@ Buffer * BufferList::newBuffer(string const & s, bool const ronly) } } tmpbuf->params().useClassDefaults(); - if (tmpbuf->fileName().extension() == "internal") { + if (tmpbuf->isInternal()) { binternal.push_back(tmpbuf.get()); } else { LYXERR(Debug::INFO, "Assigning to buffer " << bstore.size()); @@ -336,4 +336,17 @@ bool BufferList::releaseChild(Buffer * parent, Buffer * child) } +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(update_metrics); + it = binternal.begin(); + end = binternal.end(); + for (; it != end; ++it) + (*it)->changed(update_metrics); +} + + } // namespace lyx