}
}
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());
LASSERT(parent->isChild(child), return false);
// Child document has a different parent, don't close it.
- if (child->parent() != parent)
+ Buffer const * parent_ = child->parent();
+ if (parent_ && parent_ != parent)
return false;
BufferStorage::iterator it = bstore.begin();
}
+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