]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
Code cleanup in GuiCompleter
[features.git] / src / Buffer.cpp
index e78a443a88ab3c44e721f15d7b493c85109bc080..cfdb9d93c19d03839468c7dfac57d7aa4bd9ae3d 100644 (file)
@@ -3547,9 +3547,6 @@ void Buffer::collectChildren(ListOfBuffers & children, bool grand_children) cons
        // loop over children
        for (auto const & p : d->children_positions) {
                Buffer * child = const_cast<Buffer *>(p.first);
-               // This can happen when called during GUI operations
-               if (!theBufferList().isLoaded(child))
-                       continue;
                // No duplicates
                ListOfBuffers::const_iterator bit = find(children.begin(), children.end(), child);
                if (bit != children.end())
@@ -5381,6 +5378,15 @@ int Buffer::spellCheck(DocIterator & from, DocIterator & to,
 }
 
 
+void Buffer::requestSpellcheck()
+{
+       ParagraphList::iterator pit = paragraphs().begin();
+       ParagraphList::iterator pend = paragraphs().end();
+       for (; pit != pend; ++pit)
+               pit->requestSpellCheck();
+}
+
+
 void Buffer::Impl::updateStatistics(DocIterator & from, DocIterator & to, bool skipNoOutput)
 {
        bool inword = false;