]> git.lyx.org Git - features.git/commitdiff
Another comment
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 13 Nov 2020 01:31:13 +0000 (20:31 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 13 Nov 2020 01:31:13 +0000 (20:31 -0500)
src/Paragraph.cpp

index 8a97209ea9f3563e48063e1a61c15f87ddc5a3ca..8241e42d0279f122d9b1c11d2d59d46cd12b472b 100644 (file)
@@ -4561,6 +4561,10 @@ void Paragraph::updateMacros(DocIterator const & us, DocIterator const & scope)
        // iterate over the insets of the current paragraph
        for (auto const & insit : insetList()) {
                it.pos() = insit.pos;
+               // Most insets want a DocIterator that points to the beginning
+               // of their associated text. Some do not (macros, includes), but
+               // those can pop that off.
+               // FIXME Surely there is some better way.
                it.push_back(CursorSlice(*insit.inset));
                insit.inset->updateMacros(it, scope);
                it.pop_back();