commit b8473b91df16bc3cacbbbb0e2e05ccc3a1e224c0
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Mon Apr 14 16:41:44 2025 +0200

    fixup 8656c5831: logic error leading to crash
    
    Return to the old ugly comparison to lyxCode(), at least I will not
    get the condition wrong.
---
 src/Buffer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index a774b694ff..97c92c7d6a 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -3936,7 +3936,7 @@ void Buffer::Impl::updateMacros(DocIterator & it, 
DocIterator & scope)
                                        hull->recordLocation(it);
                        }
 
-                       if (im->asMacroTemplate())
+                       if (insit.inset->lyxCode() != MATH_MACROTEMPLATE_CODE)
                                continue;
 
                        // get macro data
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to