[LyX features/cleanup/updateMacros4] Another comment

Richard Kimberly Heck rikiheck at lyx.org
Fri Nov 13 01:02:01 UTC 2020


The branch, cleanup/updateMacros4, has been updated.

- Log -----------------------------------------------------------------

commit c114eec79ae078c019d98d43fec29a14ab3e0e85
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Thu Nov 12 20:31:13 2020 -0500

    Another comment

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 8a97209..8241e42 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -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();

-----------------------------------------------------------------------

Summary of changes:
 src/Paragraph.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Repository for new features


More information about the lyx-cvs mailing list