commit 9e35bc07aa4ab9358ab580d733af6e1add1a6bd8
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Apr 23 17:54:13 2025 +0200
Experiment: add assertion
It seems to me that the buf_ member of MacroContext is not useful,
since it is the same as the buffer of pos_.
---
src/mathed/MacroTable.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mathed/MacroTable.cpp b/src/mathed/MacroTable.cpp
index bf12af82db..171c750d5c 100644
--- a/src/mathed/MacroTable.cpp
+++ b/src/mathed/MacroTable.cpp
@@ -275,6 +275,7 @@ void MacroTable::dump()
MacroContext::MacroContext(Buffer const * buf, DocIterator const & pos)
: buf_(buf), pos_(pos)
{
+ LATTEST(pos.buffer() == buf);
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs